diff options
-rw-r--r-- | layouts/partials/utils/list-keywords-range.html | 3 | ||||
-rw-r--r-- | layouts/partials/utils/list-keywords.html | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/utils/list-keywords-range.html b/layouts/partials/utils/list-keywords-range.html index 2ecd4d8..952225e 100644 --- a/layouts/partials/utils/list-keywords-range.html +++ b/layouts/partials/utils/list-keywords-range.html @@ -17,7 +17,8 @@ {{ .scratch.Set .type (uniq (.scratch.Get .type)) }} {{ range (.scratch.Get .type) }} - <a href="{{ (print "/" $.type "/") | relLangURL }}{{ . | urlize }}" title="{{ . }}"> + {{/* HACK: (replace . "#" "%23/") is a special case for "#" character */}} + <a href="{{ (print "/" $.type "/") | relLangURL }}{{ replace . "#" "%23/" | urlize }}" title="{{ . }}"> {{ . }} </a> {{ end }} diff --git a/layouts/partials/utils/list-keywords.html b/layouts/partials/utils/list-keywords.html index 61fb522..bf2bc6c 100644 --- a/layouts/partials/utils/list-keywords.html +++ b/layouts/partials/utils/list-keywords.html @@ -9,7 +9,8 @@ {{ .scratch.Delete .type }} {{ partial "utils/get-keywords.html" (dict "type" .type "context" .context "scratch" .scratch "removeDuplicates" .removeDuplicates) }} {{ range (.scratch.Get .type) }} - <a href="{{ (print "/" $.type "/") | relLangURL }}{{ . | urlize }}" title="{{ . }}"> + {{/* HACK: (replace . "#" "%23/") is a special case for "#" character */}} + <a href="{{ (print "/" $.type "/") | relLangURL }}{{ replace . "#" "%23/" | urlize }}" title="{{ . }}"> {{ . }} </a> {{ end }} |