Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/monkeyWzr/hugo-theme-cactus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Regeda <regedaster@gmail.com>2020-10-30 01:46:03 +0300
committerAnthony Regeda <regedaster@gmail.com>2020-10-30 01:51:32 +0300
commitfdc99623e525832ce8bc734125722e339c44aa11 (patch)
treee5d20c322028b0df4e21b53fb6f3674cc99e6d2a /layouts
parentf7814f15000809532d6335793b18df371bcbe6d8 (diff)
Fix comma in tags list
Diffstat (limited to 'layouts')
-rw-r--r--layouts/posts/single.html6
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>