X-Git-Url: https://git.kengrimes.com/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=layouts%2F_default%2Fbaseof.html;h=ddfb8b0d8cf422a8308bbbc572db35233ae48c14;hp=d73bc08c010e1550728dee7a76c92c760536ec40;hb=3a03bebcc0264e37e178addb6475c72341bef004;hpb=c1fdc7cadf2874c660a53de3003668edc36e6200 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 }}