diff options
author | Tom Hyndman <mdashx@users.noreply.github.com> | 2021-06-01 00:22:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 00:22:19 +0300 |
commit | d4ac37c7e80d1853c85da57a3d03395f012821da (patch) | |
tree | 262ff10876a370368b496426b6bc09917e74d86e | |
parent | 968bec8406c3afb1982c848200d26b9a11add03a (diff) | |
parent | 9f19255597d815de930efcdc253dabdb7c4ebe99 (diff) |
use hugo function urlize
-rw-r--r-- | layouts/partials/list-taxonomy-terms.html | 2 | ||||
-rw-r--r-- | layouts/section/archives.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/list-taxonomy-terms.html b/layouts/partials/list-taxonomy-terms.html index 9c813eb..aab2278 100644 --- a/layouts/partials/list-taxonomy-terms.html +++ b/layouts/partials/list-taxonomy-terms.html @@ -2,7 +2,7 @@ {{ range $term := .terms }} - {{ $term_path := lower (replace ($term) " " "-") }} + {{ $term_path := (urlize $term) }} {{ $term_page := site.GetPage (path.Join $.parent $term_path) }} {{ $url := $term_page.Permalink}} 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> |