diff options
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r-- | layouts/posts/single.html | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 4456e7d..f3f8b01 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -17,15 +17,14 @@ </span> {{- with .Params.categories -}} - <span class="post-category"> + + <span class="post-category"> {{- T "included" -}} - {{- range . -}} - - <span> - <a href="{{ `/categories/` | relLangURL }}{{ urlize .}}"> - <i class="far fa-folder fa-fw"></i>{{ . | humanize }} - </a> - </span> + {{- range $index, $value := . -}} + {{- if gt $index 0 }} {{ end -}} + <a href="{{ `/categories/` | relLangURL }}{{ urlize $value }}"> + <i class="far fa-folder fa-fw"></i>{{ $value | humanize }} + </a> {{- end -}} </span> {{- end -}} |