1
Fork 0

Fix padding on missing subtitle

This commit is contained in:
Jake Howard 2017-08-05 22:17:15 +01:00
parent 6b6b285ac8
commit 6a997d3e0d
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 6 additions and 5 deletions

View file

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

View file

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