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

github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinos Park <m@minospark.com>2021-02-02 06:47:09 +0300
committerGitHub <noreply@github.com>2021-02-02 06:47:09 +0300
commitdc7258472897eba3a615ae685976db4c70c6c6e6 (patch)
tree0e12f7b33357b4ef004942a715382519571bd996
parent29ce095e7372a44794a94dd250a2ae7ad73de796 (diff)
use hugo function urlize to hypenate tags
Previously tags with spaces will render without hyphens. This fixes it.
-rw-r--r--layouts/section/archives.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/section/archives.html b/layouts/section/archives.html
index 1a893c4..d7506fa 100644
--- a/layouts/section/archives.html
+++ b/layouts/section/archives.html
@@ -22,7 +22,7 @@
</div>
<div class="post-tags">
{{ range .Params.Tags}}
- <a href="/tags/{{ . }}">{{ . }}</a>
+ <a href="/tags/{{ . }}">{{ . | urlize}}</a>
{{ end }}
</div>
</div>