Merge pull request #138 from miketweaver/master

Allow title in _index.md
This commit is contained in:
Michael Romero 2018-04-04 21:21:10 -07:00 committed by GitHub
commit 0433b4b21c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}