diff options
Diffstat (limited to 'themes/polaris')
-rw-r--r-- | themes/polaris/assets/css/style.css | 9 | ||||
-rw-r--r-- | themes/polaris/layouts/_default/single.html | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css index d5f0602..6f449a3 100644 --- a/themes/polaris/assets/css/style.css +++ b/themes/polaris/assets/css/style.css @@ -150,3 +150,12 @@ footer { .badge { image-rendering: crisp-edges; } + +pre { + padding: 8px; + white-space: pre-wrap; +} + +code { + font-size: 125%; +} diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html index ef44984..21b247d 100644 --- a/themes/polaris/layouts/_default/single.html +++ b/themes/polaris/layouts/_default/single.html @@ -1,5 +1,11 @@ {{ define "main" }} <h1>{{ .Title }}</h1> - {{ with .Date }}<p><em>Written {{ . | time.Format "Jan 02 2006" }}.</em></p>{{ end }} + {{ if (eq .Section "posts") }} + {{ with .Param "lastmod" }} +<p> + <em>Last modified {{ . | time.Format "Jan 02 2006" }}.</em> +</p> + {{ end }} + {{ end }} {{ .Content }} {{ end }} |