From 1a2aa49bbf9b52a35d46199a096c90a8d0ee7330 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Sat, 7 Dec 2019 14:06:08 -0500 Subject: [PATCH] Make list content block optional * Only generate a content block if there is content to show * Change to use a
instead of
for the list conent --- layouts/_default/list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e18e7db..16da28b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,9 +6,11 @@

{{ .Title }}

{{ end }} {{ define "content" }} -
+{{ if .Content }} +
{{ .Content }} -
+
+{{ end }} {{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }} {{ if ne $index 0 }} {{ end }}