Show tags as article metadata
2 files changed, 8 insertions(+), 0 deletions(-)
M layouts/_default/single.html → layouts/_default/single.html
@@ -3,6 +3,13 @@ <div class="article-meta"> <h1><span class="title">{{ .Title | markdownify }}</span></h1> {{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }} {{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006-01-02" }}</h2>{{ end }} +<p class="terms"> + {{ range $i := (slice "categories" "tags") }} + {{ with ($.Param $i) }} + {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} + {{ end }} + {{ end }} +</p> </div> <main>
M static/css/style.css → static/css/style.css
@@ -16,6 +16,7 @@ padding: 5px; 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 {