diff --git a/content/publishers/_index.html b/content/publishers/_index.html index b24dea4..e2fb7b6 100644 --- a/content/publishers/_index.html +++ b/content/publishers/_index.html @@ -2,3 +2,5 @@ draft: false ---

Lumbung of Publishers

+ +{{< map geoJson="data/lumbung-publishers-members.json">}} diff --git a/themes/lumbung-theme/layouts/partials/publishers_post_card.html b/themes/lumbung-theme/layouts/partials/publishers_post_card.html index ae4f6c5..0814aec 100644 --- a/themes/lumbung-theme/layouts/partials/publishers_post_card.html +++ b/themes/lumbung-theme/layouts/partials/publishers_post_card.html @@ -1,26 +1,46 @@ -
-
- {{ $postPermalink := .Permalink}} - -
-

+

+
+ + {{ 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"}} +
+
+ {{ .Title }} +
+ {{ else }} +
+ {{ end }} + {{ end }} +
+ {{ .Summary }}
- -
- - - - -
- +
+ + +
-
+ \ 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 */