From 6a997d3e0d374f8f123f65169d0173a497182000 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 5 Aug 2017 22:17:15 +0100 Subject: [PATCH] Fix padding on missing subtitle --- layouts/partials/content.html | 5 +++-- layouts/partials/subtitle_string.html | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 99f15a6..1d7307e 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,8 +1,9 @@

{{ title .Title }}

-

{{ partial "subtitle_string.html" . }}

+ {{ partial "subtitle_string.html" . }} + {{ if .Params.date }} - Published: {{ .Date.Format "January 2 2006" }} + {{ .Date.Format "January 2 2006" }} {{ end }}
{{ if .Content }} diff --git a/layouts/partials/subtitle_string.html b/layouts/partials/subtitle_string.html index 4275d61..c48e122 100644 --- a/layouts/partials/subtitle_string.html +++ b/layouts/partials/subtitle_string.html @@ -1,7 +1,7 @@ {{ if .Params.subtitle }} - {{ .Params.subtitle | markdownify }} +

{{ .Params.subtitle | markdownify }}

{{ else if .Params.repo }} - {{ (getJSON "https://api.github.com/repos/" .Params.repo).description }} +

{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}

{{ else if .Params.gist }} - {{ (getJSON "https://api.github.com/gists/" .Params.gist).description }} +

{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}

{{ end }}