From 3a03bebcc0264e37e178addb6475c72341bef004 Mon Sep 17 00:00:00 2001 From: kengrimes Date: Fri, 20 Apr 2018 13:48:22 -0700 Subject: [PATCH] using .Page.Description instead of .Page.Params.heading --- layouts/_default/baseof.html | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d73bc08..ddfb8b0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -15,19 +15,12 @@ {{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) $sh .Params.header }}
-

{{- if not .Page.Params.heading }} - {{ .Page.Title }} - {{- else if eq (printf "%T" .Page.Params.heading) "string" }} - {{ .Page.Params.heading }} - {{- else }} - {{- index .Page.Params.heading 0 }} - {{- if (gt (len .Page.Params.heading) 1) }} - {{- range after 1 .Page.Params.heading -}} -
- {{ . }} - {{- end -}} - {{- end -}} - {{- end }} +

+ {{- if not .Page.Description }} + {{ .Page.Title }} + {{- else }} + {{ replaceRE "\n\n" "
\n" .Page.Description | safeHTML }} + {{- end }}

-- 2.18.0