Move site title/sub-title into header partial
parent
880e97f166
commit
e5f250c91c
|
@ -1,13 +1,3 @@
|
||||||
{{- define "content-header" -}}
|
|
||||||
<hgroup>
|
|
||||||
<h1>{{.Title}}</h1>
|
|
||||||
{{- if .Params.Subtitle }}
|
|
||||||
<h2 class="subtitle">{{.Params.Subtitle}}</h2>
|
|
||||||
{{- else if .Site.Params.Subtitle }}
|
|
||||||
<h2 class="subtitle">{{.Site.Params.Subtitle}}</h2>
|
|
||||||
{{- end }}
|
|
||||||
</hgroup>
|
|
||||||
{{ end }}
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
<article class="homepage-content">
|
<article class="homepage-content">
|
||||||
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<hgroup>
|
||||||
|
<h1>{{.Site.Title}}</h1>
|
||||||
|
{{- if .Site.Params.Subtitle }}
|
||||||
|
<h2 class="subtitle">{{.Site.Params.Subtitle}}</h2>
|
||||||
|
{{- end }}
|
||||||
|
</hgroup>
|
Loading…
Reference in New Issue