From 86a069e5efdd545d762da42c9305c4a1d9730687 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Mon, 3 Feb 2025 21:25:20 -0500 Subject: [PATCH] only show labels if posts exist --- layouts/_default/list.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 902ef18..5d66523 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,30 +12,30 @@ {{- end }} -
-

Latest Posts:

{{ with $pages.Limit 4 }} -
- {{ range . }} - {{ partial "article.html" . }} - {{ end }} -
+
+

Latest Posts:

+
+ {{ range . }} + {{ partial "article.html" . }} + {{ end }} +
+
{{ end }} -
-
-

All Posts:

{{ with $pages }} - {{ range .GroupByDate "2006" }} -

{{ .Key }}

- - {{ end }} +
+

All Posts:

+ {{ range .GroupByDate "2006" }} +

{{ .Key }}

+ + {{ end }} +
{{ end }} -
{{ end }}