diff options
author | Minos Park <m@minospark.com> | 2021-02-02 06:47:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 06:47:09 +0300 |
commit | dc7258472897eba3a615ae685976db4c70c6c6e6 (patch) | |
tree | 0e12f7b33357b4ef004942a715382519571bd996 | |
parent | 29ce095e7372a44794a94dd250a2ae7ad73de796 (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.html | 2 |
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> |