Merge pull request #356 from undergroundwires/subtitle
Make it easier to override subtitle
This commit is contained in:
commit
c8ace1b809
2 changed files with 5 additions and 3 deletions
|
@ -10,9 +10,8 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<h1>{{ .Site.Title }}</h1>
|
<h1>{{ .Site.Title }}</h1>
|
||||||
{{- with .Site.Params.homeSubtitle }}
|
|
||||||
<p>{{.}}</p>
|
{{ partial "subtitle.html" . }}
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- with .Site.Params.social }}
|
{{- with .Site.Params.social }}
|
||||||
<div>
|
<div>
|
||||||
|
|
3
layouts/partials/subtitle.html
Normal file
3
layouts/partials/subtitle.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{{- with .Site.Params.homeSubtitle }}
|
||||||
|
<p>{{.}}</p>
|
||||||
|
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue