diff options
Diffstat (limited to 'themes/xmin/layouts/_default/single.html')
-rw-r--r-- | themes/xmin/layouts/_default/single.html | 9 |
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> |