Make it easier to override subtitle
This commit is contained in:
parent
848b6879b3
commit
660f1fcaaf
2 changed files with 5 additions and 3 deletions
|
@ -10,9 +10,8 @@
|
|||
{{ end }}
|
||||
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
{{- with .Site.Params.homeSubtitle }}
|
||||
<p>{{.}}</p>
|
||||
{{- end }}
|
||||
|
||||
{{ partial "subtitle.html" . }}
|
||||
|
||||
{{- with .Site.Params.social }}
|
||||
<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