From c17177aecd53ddc1395af5e53a0571ef825c4492 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 8 Oct 2024 22:33:59 -0700 Subject: [PATCH] Only add content from a list page if there's actually content to render --- layouts/blog/list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 21375b5..24452d9 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -4,9 +4,9 @@ {{ partial "page_header.html" (dict "page" .) }} -
- {{ .Content }} -
+ {{- with .Content }} +
{{ . }}
+ {{ end -}}
{{ range .Pages.ByDate.Reverse }}