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>
|
<main>
|
||||||
<header class="homepage-header">
|
<header class="homepage-header">
|
||||||
<h1>{{.Title}}</h1>
|
<h1>{{.Title}}</h1>
|
||||||
{{ with .Site.Params.Subtitle }}
|
{{ if .Params.Subtitle }}
|
||||||
<span class="subtitle">{{.}}</span>
|
<span class="subtitle">{{.Params.Subtitle}}</span>
|
||||||
|
{{ else if .Site.Params.Subtitle }}
|
||||||
|
<span class="subtitle">{{.Site.Params.Subtitle}}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
<div class="homepage-content">
|
<div class="homepage-content">
|
||||||
|
|
Loading…
Reference in New Issue