From 1f62d2a9e94351d4dc92528ee712513c07d456c3 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Tue, 19 Nov 2019 00:09:50 -0500 Subject: [PATCH] Set order of precedence for subtitle Look first in the front-matter for the _index.md file, and secondly in the parameters defined in the config.toml file. --- layouts/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index e60afe6..af1809f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,8 +2,10 @@

{{.Title}}

- {{ with .Site.Params.Subtitle }} - {{.}} + {{ if .Params.Subtitle }} + {{.Params.Subtitle}} + {{ else if .Site.Params.Subtitle }} + {{.Site.Params.Subtitle}} {{ end }}
@@ -17,4 +19,4 @@ {{ end }}
-{{ end }} \ No newline at end of file +{{ end }}