summary refs log tree commit diff stats
path: root/themes/xmin/layouts/_default/single.html
diff options
context:
space:
mode:
authorAlan Pearce2020-01-11 19:17:28 +0100
committerAlan Pearce2020-01-11 19:17:28 +0100
commitdee6336441b5da8a00344eb135040a2cb3a94dac (patch)
treec235b723d500605aea58dbc732f4584ceaa82d08 /themes/xmin/layouts/_default/single.html
parent508f604c012335027585245bbb3cf91a1cc373d7 (diff)
downloadwebsite-dee6336441b5da8a00344eb135040a2cb3a94dac.tar.lz
website-dee6336441b5da8a00344eb135040a2cb3a94dac.tar.zst
website-dee6336441b5da8a00344eb135040a2cb3a94dac.zip
Cleanup whitespace in output
Diffstat (limited to 'themes/xmin/layouts/_default/single.html')
-rw-r--r--themes/xmin/layouts/_default/single.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html
index 7da26d1..ba0e22a 100644
--- a/themes/xmin/layouts/_default/single.html
+++ b/themes/xmin/layouts/_default/single.html
@@ -4,12 +4,11 @@
     <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1>
     {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ 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 }}
+      {{- range $i := (slice "categories" "tags") }}
+      {{- with ($.Param $i) }}
       {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
+      {{- end }}
+      {{- end }}
     </p>
   </header>