diff --git a/config.toml b/config.toml
index 44eadc6..1e59e82 100644
--- a/config.toml
+++ b/config.toml
@@ -21,8 +21,9 @@ unsafe = true
[taxonomies]
author = "authors"
+ contributor = "contributors"
tag = "tags"
- category = "categories"
+ source = "sources"
timeline = "timelines"
[permalinks]
diff --git a/content/contributors.md b/content/ls-contributors.md
similarity index 100%
rename from content/contributors.md
rename to content/ls-contributors.md
diff --git a/themes/lumbung-theme/layouts/_default/baseof.html b/themes/lumbung-theme/layouts/_default/baseof.html
index 638faaa..9e34d4e 100644
--- a/themes/lumbung-theme/layouts/_default/baseof.html
+++ b/themes/lumbung-theme/layouts/_default/baseof.html
@@ -41,16 +41,6 @@
})
})
- // add classes for styling lumbung kios and lumbung gallery cards
- let cards = document.querySelectorAll('.shout.card');
- [...cards].forEach(card => {
- if (card.querySelector('a[href="/tags/lumbungkios"]') || card.querySelector('a[href="/tags/lumbungkiosproducts"]')) {
- card.classList.add('lumbung-kios')
- } else if (card.querySelector('a[href="/tags/lumbunggallery"]')) {
- card.classList.add('lumbung-gallery')
- }
- })
-
// footer random color
var color = ['orange','green','blue'];
var footer = document.getElementById("footer");
diff --git a/themes/lumbung-theme/layouts/_default/list.html b/themes/lumbung-theme/layouts/_default/list.html
index e93d0c7..3c45a28 100644
--- a/themes/lumbung-theme/layouts/_default/list.html
+++ b/themes/lumbung-theme/layouts/_default/list.html
@@ -4,40 +4,32 @@
{{ range where (.Paginator 13).Pages "Params.hidden" "ne" "true" }}
- {{ if in .Params.categories "tv"}}
-
+ {{if eq .Section "tv"}}
{{- partial "video_box.html" . -}}
-
- {{ else if in .Params.categories "calendar" }}
-
- {{- partial "calendar_card.html" . -}}
-
- {{ else if in .Params.categories "network" }}
-
- {{- partial "network_card.html" . -}}
-
- {{ else if in .Params.categories "shouts" }}
-
- {{- partial "shout_card.html" . -}}
-
- {{ else if in .Params.categories "pen" }}
-
- {{- partial "pen_card.html" . -}}
-
- {{ else if in .Params.categories "book" }}
-
- {{- partial "book.html" . -}}
-
- {{ else if in .Params.categories "page" }}
-
- {{- partial "blank.html" . -}}
-
+
+ {{ else if eq .Section "events" }}
+ {{- partial "partials/calendar_card.html" . -}}
+
+ {{ else if eq .Section "shouts" }}
+ {{ if in .Params.sources "pen.lumbung.space" }}
+ {{- partial "pen_card.html" . -}}
+ {{ else }}
+ {{- partial "shout_card.html" . -}}
+ {{ end }}
+
+ {{ else if eq .Section "social" }}
+ {{- partial "social_card.html" . -}}
+
+ {{ else if eq .Section "publications"}}
+ {{- partial "book_card.html" . -}}
+
+ {{ else if eq .Section "sounds"}}
+ {{- partial "sounds_card.html" . -}}
+
{{ else }}
-
{{- partial "card.html" . -}}
-
- {{ end }}
-
+
+ {{ end }}
{{ end }}
diff --git a/themes/lumbung-theme/layouts/index.html b/themes/lumbung-theme/layouts/index.html
index 0f9408f..a5c69ec 100644
--- a/themes/lumbung-theme/layouts/index.html
+++ b/themes/lumbung-theme/layouts/index.html
@@ -6,22 +6,34 @@
{{ .Key }}
{{ range .Pages }}
- {{ if in .Params.categories "tv"}}
- {{- partial "video_box.html" . -}}
- {{ else if in .Params.categories "calendar" }}
- {{- partial "calendar_card.html" . -}}
- {{ else if in .Params.categories "network" }}
- {{- partial "network_card.html" . -}}
- {{ else if in .Params.categories "pen" }}
- {{- partial "pen_card.html" . -}}
- {{ else if in .Params.categories "shouts" }}
- {{- partial "shout_card.html" . -}}
- {{ else if in .Params.categories "books.lumbung.space"}}
- {{- partial "book_card.html" . -}}
- {{ else }}
- {{- partial "card.html" . -}}
- {{ end }}
- {{ end }}
+
+ {{if eq .Section "tv"}}
+ {{- partial "video_box.html" . -}}
+
+ {{ else if eq .Section "events" }}
+ {{- partial "partials/calendar_card.html" . -}}
+
+ {{ else if eq .Section "shouts" }}
+ {{ if in .Params.sources "pen.lumbung.space" }}
+ {{- partial "pen_card.html" . -}}
+ {{ else }}
+ {{- partial "shout_card.html" . -}}
+ {{ end }}
+
+ {{ else if eq .Section "social" }}
+ {{- partial "social_card.html" . -}}
+
+ {{ else if eq .Section "publications"}}
+ {{- partial "book_card.html" . -}}
+
+ {{ else if eq .Section "sounds"}}
+ {{- partial "sounds_card.html" . -}}
+
+ {{ else }}
+ {{- partial "card.html" . -}}
+ {{ end }}
+
+ {{ end }}
{{ end }}