Fix padding on missing subtitle
This commit is contained in:
parent
6b6b285ac8
commit
6a997d3e0d
2 changed files with 6 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
||||||
<header>
|
<header>
|
||||||
<h2>{{ title .Title }}</h2>
|
<h2>{{ title .Title }}</h2>
|
||||||
<p>{{ partial "subtitle_string.html" . }}</p>
|
{{ partial "subtitle_string.html" . }}
|
||||||
|
|
||||||
{{ if .Params.date }}
|
{{ if .Params.date }}
|
||||||
<small>Published: {{ .Date.Format "January 2 2006" }}</small>
|
<small>{{ .Date.Format "January 2 2006" }}</small>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ if .Params.subtitle }}
|
{{ if .Params.subtitle }}
|
||||||
{{ .Params.subtitle | markdownify }}
|
<p>{{ .Params.subtitle | markdownify }}</p>
|
||||||
{{ else if .Params.repo }}
|
{{ else if .Params.repo }}
|
||||||
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
|
<p>{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}</p>
|
||||||
{{ else if .Params.gist }}
|
{{ else if .Params.gist }}
|
||||||
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
|
<p>{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue