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.pull/1/head
parent
64757f1ce1
commit
1f62d2a9e9
|
@ -2,8 +2,10 @@
|
|||
<main>
|
||||
<header class="homepage-header">
|
||||
<h1>{{.Title}}</h1>
|
||||
{{ with .Site.Params.Subtitle }}
|
||||
<span class="subtitle">{{.}}</span>
|
||||
{{ if .Params.Subtitle }}
|
||||
<span class="subtitle">{{.Params.Subtitle}}</span>
|
||||
{{ else if .Site.Params.Subtitle }}
|
||||
<span class="subtitle">{{.Site.Params.Subtitle}}</span>
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="homepage-content">
|
||||
|
@ -17,4 +19,4 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue