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/all-posts.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 layouts/all-posts.html (limited to 'layouts/all-posts.html') diff --git a/layouts/all-posts.html b/layouts/all-posts.html new file mode 100644 index 0000000..4a94ab6 --- /dev/null +++ b/layouts/all-posts.html @@ -0,0 +1,36 @@ +{{ define "main" }} +
+
+

+ {{ .Title }} +

+ {{- with .Content }} +
+ {{ . }} +
+ {{- else }} + {{- $description := or .Description (lang.Translate "posts_all_description" | default "All posts on this website, from newest to oldest.") }} +

+ {{ $description }} +

+ {{- end }} +
+ + {{ $allPosts := where site.RegularPages "Params.excludeFromLists" "!=" true }} + {{- if $allPosts }} +
+
    + {{- range $allPosts.ByDate.Reverse }} +
  • + {{ partial "list/post-card.html" (dict "post" . "show_section" true) }} +
  • + {{- end }} +
+
+ {{ else }} +

+ {{ lang.Translate "posts_empty" | default "This site does not have any posts yet." }} +

+ {{- end }} +
+{{ end }} -- cgit v1.2.3