From 797f6be25f81678a8cc643759c125f1dac40221a Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sun, 1 Feb 2026 17:56:08 -0500 Subject: [PATCH] feature: added separate list and terms templates, for posts under the taxonomy and different taxonomy terms respectively --- themes/sukaato/layouts/categories/list.html | 31 ++++++++++++++++++++ themes/sukaato/layouts/categories/terms.html | 24 +++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 themes/sukaato/layouts/categories/list.html create mode 100644 themes/sukaato/layouts/categories/terms.html diff --git a/themes/sukaato/layouts/categories/list.html b/themes/sukaato/layouts/categories/list.html new file mode 100644 index 0000000..713e500 --- /dev/null +++ b/themes/sukaato/layouts/categories/list.html @@ -0,0 +1,31 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ {{ with .Summary }} +

{{ . }}

+ {{ end }} +
+ {{ if ne .Params.image nil }} + {{ $path := print ".." .Params.image }} + {{ lower .Title }}_image + {{ else }} + @TODO: 404 image goes here + {{ end }} +
+ {{ with .Content }} +
+ {{ . }} +
+ {{ end }} +
+ {{ range .Paginator.Pages }} + +
+

{{ .LinkTitle }}

+

{{ .Summary }}

+
+
+ {{ end }}{{ template "_internal/pagination.html" . }} +
+{{ end }} diff --git a/themes/sukaato/layouts/categories/terms.html b/themes/sukaato/layouts/categories/terms.html new file mode 100644 index 0000000..1f99e16 --- /dev/null +++ b/themes/sukaato/layouts/categories/terms.html @@ -0,0 +1,24 @@ +{{ define "expo" }} +
+

{{ .Title }}

+

{{ .Content }}

+
+{{ end }} +{{ define "main" }} +
+ {{ range .Data.Pages }} + {{ if ne .Params.image nil }} + {{ $path := print "." .Params.image }} +
+ {{ else }} +
+ {{ end }} +

{{ .Title }}

+ + {{ with .Summary }} +

{{ . }}

+ {{ end }} +
+ {{ end }} +
+{{ end }}