From 03b428836be7f4d12166c89162619e3b7bb1ba95 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 7 Oct 2026 16:21:16 +0200 Subject: [PATCH] Add subcategories --- layouts/zettels/list.html | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 layouts/zettels/list.html diff --git a/layouts/zettels/list.html b/layouts/zettels/list.html new file mode 100644 index 0000000..4cc600d --- /dev/null +++ b/layouts/zettels/list.html @@ -0,0 +1,44 @@ +{{- define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end -}} + +{{- define "item" -}} +
  • + {{ .Title | title }} + {{ with .Keywords }}{{ . }}{{ end }} + {{ with .Description }}
    {{ . }}
    {{ end }} +
  • +{{- end }} + +{{- define "content" }} +{{- range .Pages.GroupByParam "category" }} +
    + {{ .Key | title }}: + +
    +{{- end }} + +{{- $uncat := where .Pages "Params.category" "eq" nil }} +{{- if $uncat }} +
    + Other: + +
    +{{- end }} +{{- end }}