From a52cd26f4ccf6a6e153c882a05ee8ec6cee5f8ca Mon Sep 17 00:00:00 2001 From: Mike Weaver Date: Sun, 18 Feb 2018 13:06:19 -0700 Subject: [PATCH] Allow title in _index.md --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2b1e43b..4245e78 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@ {{ if .IsHome }} - {{ $.Scratch.Set "title" .Site.Title }} + {{ if isset .Params "title" }}{{ $.Scratch.Set "title" .Title }}{{ else }}{{ $.Scratch.Set "title" .Site.Title }}{{ end }} {{ if .Site.Params.subtitle }}{{ $.Scratch.Set "subtitle" .Site.Params.subtitle }}{{ end }} {{ if .Site.Params.bigimg }}{{ $.Scratch.Set "bigimg" .Site.Params.bigimg }}{{ end }} {{ else }}