From 543219cf0c431648eea9abc0208b9e4bba6da24e Mon Sep 17 00:00:00 2001 From: Gianmarco Gargiulo Date: Sun, 12 Nov 2023 01:09:39 +0100 Subject: [PATCH] Added an 'All posts' page to show all adequate regular pages --- content/all/_index.md | 3 +++ layouts/all/list.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 content/all/_index.md create mode 100644 layouts/all/list.html diff --git a/content/all/_index.md b/content/all/_index.md new file mode 100644 index 0000000..c09d307 --- /dev/null +++ b/content/all/_index.md @@ -0,0 +1,3 @@ +--- +title: All posts +--- diff --git a/layouts/all/list.html b/layouts/all/list.html new file mode 100644 index 0000000..9faf30f --- /dev/null +++ b/layouts/all/list.html @@ -0,0 +1,32 @@ +{{ define "body_class" }} tag-template {{ end }} + +{{ define "main" }} + + + +
+
+
+ {{ range $index, $element := (where .Site.RegularPages ".Params.rss_ignore" "ne" "true") }} + {{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}} + {{ end }} +
+
+
+ +{{ end }}