From 4ebcf7887c95a9b759ea6ba3c0eaea9afa0c8cb4 Mon Sep 17 00:00:00 2001 From: irrlicht Date: Wed, 6 May 2026 13:29:09 +0200 Subject: [PATCH] Lists and Headers --- layouts/list.html | 12 ++++++------ layouts/single.html | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/layouts/list.html b/layouts/list.html index f976f84..d17e80d 100644 --- a/layouts/list.html +++ b/layouts/list.html @@ -4,12 +4,12 @@ {{ .Content }} -
- -{{ range .Pages.ByDate }} -

{{ .Title }}

- {{ .Content }} -
+{{ if .Pages }} + {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/single.html b/layouts/single.html index af7de24..fcc28b7 100644 --- a/layouts/single.html +++ b/layouts/single.html @@ -1,7 +1,6 @@ {{ define "title" }}SWP - {{ .Page.Title }}{{ end }} {{ define "main" }} -

{{ .Title }}

{{ .Content }}