From f8541ef965ca22e746b523eb418e47cb4f78f2d8 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Fri, 9 Jan 2026 12:24:05 +0100 Subject: Upgrade to new template system from Hugo v0.146.0 --- layouts/list.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 layouts/list.html (limited to 'layouts/list.html') diff --git a/layouts/list.html b/layouts/list.html new file mode 100644 index 0000000..f952e56 --- /dev/null +++ b/layouts/list.html @@ -0,0 +1,39 @@ +{{- define "main" }} +
+
+

+ {{ .Title }} +

+ {{- with .Content }} +
+ {{ . }} +
+ {{- else }} + {{- $description := or .Description .Summary (lang.Translate "list_description" .Title | default (printf "All posts in %s" .Title)) }} +

+ {{ $description }} +

+ {{- end }} +
+ +
+ {{- /* 15 posts per site */ -}} + {{- $paginator := .Paginate .Pages 15 }} + {{- with $paginator.Pages }} +
    + {{- range . }} +
  • + {{- partial "list/post-card.html" (dict "post" .) }} +
  • + {{- end }} +
+ {{ else }} +

+ {{ lang.Translate "list_empty" | default "No posts found in this section." }} +

+ {{- end }} +
+ + {{- partial "list/pagination.html" $paginator }} +
+{{- end }} -- cgit v1.2.3