all repos — archive/hugo-xmin @ ee3e93972c9a86d6eb86015f93894af3e40f966b

Customised minimal hugo theme

Show tags as article metadata

Alan Pearce
commit

ee3e93972c9a86d6eb86015f93894af3e40f966b

parent

6394af8cf6c1fc3315312cd5106725e70cbd0764

2 files changed, 8 insertions(+), 0 deletions(-)

jump to
M layouts/_default/single.htmllayouts/_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.cssstatic/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 {