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:
authorTom Hyndman <mdashx@users.noreply.github.com>2021-06-01 00:22:19 +0300
committerGitHub <noreply@github.com>2021-06-01 00:22:19 +0300
commitd4ac37c7e80d1853c85da57a3d03395f012821da (patch)
tree262ff10876a370368b496426b6bc09917e74d86e
parent968bec8406c3afb1982c848200d26b9a11add03a (diff)
parent9f19255597d815de930efcdc253dabdb7c4ebe99 (diff)
Merge pull request #9 from MrMinos/patch-1HEADmaster
use hugo function urlize
-rw-r--r--layouts/partials/list-taxonomy-terms.html2
-rw-r--r--layouts/section/archives.html2
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>