diff options
author | Anthony Regeda <regedaster@gmail.com> | 2020-10-30 01:46:03 +0300 |
---|---|---|
committer | Anthony Regeda <regedaster@gmail.com> | 2020-10-30 01:51:32 +0300 |
commit | fdc99623e525832ce8bc734125722e339c44aa11 (patch) | |
tree | e5d20c322028b0df4e21b53fb6f3674cc99e6d2a /layouts | |
parent | f7814f15000809532d6335793b18df371bcbe6d8 (diff) |
Fix comma in tags list
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/posts/single.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 37d12ce..d2b6042 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -34,7 +34,7 @@ <div class="article-category"> <i class="fas fa-archive"></i> {{ range $index, $value := .Params.categories }} - {{ if gt $index 1 }} {{ print ", " }} {{ end }} + {{ if gt $index 0 }} {{ print ", " }} {{ end }} <a class="category-link" href="{{ "/categories/" | relLangURL }}{{ $value | urlize }}">{{ $value }}</a> {{ end }} </div> @@ -43,10 +43,10 @@ <div class="article-tag"> <i class="fas fa-tag"></i> {{ range $index, $value := .Params.tags }} - {{ if gt $index 1 }} {{ print ", " }} {{ end }} + {{ if gt $index 0 }} {{ print ", " }} {{ end }} <a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ $value | urlize }}" rel="tag">{{ $value }}</a> {{ end }} - </div> + </div> {{ end }} </div> </header> |