From 26df3baeb1afcb4c41ec99f940b237b9589caa42 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Thu, 4 Sep 2025 20:05:27 +0200 Subject: Ready for deployment --- layouts/_default/all-posts.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 layouts/_default/all-posts.html (limited to 'layouts/_default/all-posts.html') diff --git a/layouts/_default/all-posts.html b/layouts/_default/all-posts.html new file mode 100644 index 0000000..319a8d5 --- /dev/null +++ b/layouts/_default/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" . }} +
  • + {{- end }} +
+
+ {{ else }} +

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

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