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>
|
||||
<h2>{{ title .Title }}</h2>
|
||||
<p>{{ partial "subtitle_string.html" . }}</p>
|
||||
{{ partial "subtitle_string.html" . }}
|
||||
|
||||
{{ if .Params.date }}
|
||||
<small>Published: {{ .Date.Format "January 2 2006" }}</small>
|
||||
<small>{{ .Date.Format "January 2 2006" }}</small>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ if .Content }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ if .Params.subtitle }}
|
||||
{{ .Params.subtitle | markdownify }}
|
||||
<p>{{ .Params.subtitle | markdownify }}</p>
|
||||
{{ 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 }}
|
||||
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
|
||||
<p>{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}</p>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue