From 463f5931532c752b33cf5f74346e1ed0194e2cd9 Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Fri, 19 Jul 2019 11:23:02 -0400 Subject: [PATCH] Remove list header if title or description isnt present --- 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 bcbf067..4d41403 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,10 +4,12 @@ {{ partial "nav-bar.html" . }}
+ {{ if or (isset .Params "description") (isset .Params "title") -}}
-

{{ .Description }}

-

{{ .Title }}

+ {{ with .Description }}

{{ . }}

{{ end }} + {{ with .Title }}

{{ . }}

{{ end }}
+ {{- end }} {{ with .Content -}}
{{ . }}