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

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2019-03-26 06:35:35 +0300
committerDerek Severin <severinderek@gmail.com>2019-03-26 06:35:35 +0300
commitd975626d7222fdb6a89fccb3d3664a70b7a83a73 (patch)
tree1a80ba665965f887c6a194909b6df2e93a2d4a8b
parent3632f71bfbfd93fb20c9b795e2b97872a3e19e7e (diff)
Fixed C# url problem
-rw-r--r--layouts/partials/utils/list-keywords-range.html3
-rw-r--r--layouts/partials/utils/list-keywords.html3
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 }}