+
+
+
+ {{ $postPermalink := .Permalink}}
+
{{ .Title }}
-
-
+
+
+
+ {{ with (index (.Resources.ByType "video") 0) }}
+ {{/* TODO this current logic does not suport video & image mixed */}}
-
- {{ .Summary }}...
-
+
+ {{ else}}
+ {{ with (index (.Resources.ByType "image") 0) }}
+ {{ $height := add .Height 0.0}}
+ {{ $ratio := div $height .Width}}
+ {{ $thumb := .Fit "540x540 q80 webp"}}
+
+
\ No newline at end of file
diff --git a/themes/lumbung-theme/layouts/publishers/list.html b/themes/lumbung-theme/layouts/publishers/list.html
index 55ca335..0e8fa25 100644
--- a/themes/lumbung-theme/layouts/publishers/list.html
+++ b/themes/lumbung-theme/layouts/publishers/list.html
@@ -1,16 +1,13 @@
{{ define "main" }}
{{.Content}}
-
-
- {{ range where (.Paginator 13).Pages "Params.hidden" "ne" "true" }}
- {{- partial "publishers_post_card.html" . -}}
+
+ {{ range where site.RegularPages "Type" "publishers" }}
+
+ {{ partial "partials/publishers_post_card.html" . -}}
+
{{ end }}
-
-
{{ end }}
diff --git a/themes/lumbung-theme/static/css/main.css b/themes/lumbung-theme/static/css/main.css
index b0508f9..0ab0ef7 100644
--- a/themes/lumbung-theme/static/css/main.css
+++ b/themes/lumbung-theme/static/css/main.css
@@ -1011,6 +1011,16 @@ label:hover {
text-align: center;
}
+/* publishers card */
+.publishers.card {
+ display: flex;
+}
+
+/* publishers map */
+#map {
+ margin-bottom: 4rem;
+}
+
/* Paginator */
{{ .Title }} -
-
-
\ No newline at end of file
diff --git a/themes/lumbung-theme/layouts/publishers/list.html b/themes/lumbung-theme/layouts/publishers/list.html
index 55ca335..0e8fa25 100644
--- a/themes/lumbung-theme/layouts/publishers/list.html
+++ b/themes/lumbung-theme/layouts/publishers/list.html
@@ -1,16 +1,13 @@
{{ define "main" }}
- {{ .Summary }}...
-
+
+ {{ else}}
+ {{ with (index (.Resources.ByType "image") 0) }}
+ {{ $height := add .Height 0.0}}
+ {{ $ratio := div $height .Width}}
+ {{ $thumb := .Fit "540x540 q80 webp"}}
+
+
- {{ range where (.Paginator 13).Pages "Params.hidden" "ne" "true" }}
- {{- partial "publishers_post_card.html" . -}}
+
+ {{ range where site.RegularPages "Type" "publishers" }}
+
-
-
{{ end }}
diff --git a/themes/lumbung-theme/static/css/main.css b/themes/lumbung-theme/static/css/main.css
index b0508f9..0ab0ef7 100644
--- a/themes/lumbung-theme/static/css/main.css
+++ b/themes/lumbung-theme/static/css/main.css
@@ -1011,6 +1011,16 @@ label:hover {
text-align: center;
}
+/* publishers card */
+.publishers.card {
+ display: flex;
+}
+
+/* publishers map */
+#map {
+ margin-bottom: 4rem;
+}
+
/* Paginator */
+ {{ partial "partials/publishers_post_card.html" . -}}
+
{{ end }}