Move site title/sub-title into header partial

master
Kevin C. Coram 2019-11-22 23:29:39 -05:00
parent 880e97f166
commit e5f250c91c
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
2 changed files with 6 additions and 10 deletions

View File

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

View File

@ -0,0 +1,6 @@
<hgroup>
<h1>{{.Site.Title}}</h1>
{{- if .Site.Params.Subtitle }}
<h2 class="subtitle">{{.Site.Params.Subtitle}}</h2>
{{- end }}
</hgroup>