From c8065436c11440c5fadcb78fcbbba0aa7cf5771c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 27 Jul 2017 18:10:38 +0100 Subject: [PATCH] Add post date where available --- layouts/partials/content.html | 3 +++ static/src/scss/style.scss | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index efca1b0..99f15a6 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,6 +1,9 @@

{{ title .Title }}

{{ partial "subtitle_string.html" . }}

+ {{ if .Params.date }} + Published: {{ .Date.Format "January 2 2006" }} + {{ end }}
{{ if .Content }}
diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 5bc82c6..cc84611 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -117,6 +117,15 @@ nav { #main > header { margin-bottom: 2em; + + p { + padding: 1em 0 0.5em; + } + + small { + display: block; + font-size: 0.9em; + } } .yt-embed {