From ee3e93972c9a86d6eb86015f93894af3e40f966b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 6 Jan 2020 21:17:03 +0100 Subject: Show tags as article metadata --- layouts/_default/single.html | 7 +++++++ static/css/style.css | 1 + 2 files changed, 8 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bde04ef..fc7edb3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,6 +3,13 @@

{{ .Title | markdownify }}

{{ with .Params.author }}

{{ . }}

{{ end }} {{ if (gt .Params.date 0) }}

{{ .Date.Format "2006-01-02" }}

{{ end }} +

+ {{ range $i := (slice "categories" "tags") }} + {{ with ($.Param $i) }} + {{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }} + {{ end }} + {{ end }} +

diff --git a/static/css/style.css b/static/css/style.css index 1eb0bfc..23c0912 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -16,6 +16,7 @@ body { text-decoration: none; } .menu, .article-meta, footer { text-align: center; } +.terms { font-size: .9em; } .title { font-size: 1.1em; } footer a { text-decoration: none; } hr { -- cgit 1.4.1