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

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-03-05 21:19:53 +0300
committerZachary Betz <zwbetz@gmail.com>2019-03-05 21:19:53 +0300
commit67ba0083853d6af93e77e39f5085f04aef9c8356 (patch)
treeca6d95acf188e715730a866937e415f9e9fad5c7 /layouts
parent950271552417c9aab4d4602ddf392cd4c9fc8636 (diff)
Add trailing url to tag
Diffstat (limited to 'layouts')
-rw-r--r--layouts/post/single.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index f8984ef..5b409be 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -19,7 +19,8 @@
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
<use xlink:href="#tag"></use>
</svg>
- <a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ $href := print ("tags/" | absLangURL) (. | urlize) "/" }}
+ <a href="{{ $href }}">{{ . }}</a>
</li>
{{ end }}
</ul>