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

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2020-01-22 10:13:03 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2020-01-22 10:13:03 +0300
commitf29a1a8ad4ac9f4caed16a9ad35c81991efd3029 (patch)
treeb92aa52eccb8642cce6d41d27b5de5354ba5484c
parent9237abc1ac4fe0ffc6ad63798ef5d937d140a0b2 (diff)
Solve problem for non-English tags (#1)
-rw-r--r--layouts/_default/single.html10
1 files changed, 3 insertions, 7 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 64e90bc..c0f200f 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -9,14 +9,10 @@
{{ if .Date -}}
<div>{{ .Date.Format "2006-01-02 15:04" }}</div>
{{ end -}}
- {{ $taxo := "tags" -}}
- {{ if .Param $taxo -}}
+ {{ if .Params.tags -}}
<div>
- {{ range .Param $taxo -}}
- {{ $name := . -}}
- {{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) -}}
- <span><a href="{{ .Permalink }}">#{{ $name }}</a></span>
- {{ end -}}
+ {{ range .Params.tags -}}
+ <span><a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a></span>
{{ end -}}
</div>
{{ end -}}