aboutsummaryrefslogtreecommitdiff
path: root/layouts/post/single.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-30 21:26:46 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-30 21:26:46 +0800
commit084f8cb2c350f44fd99bf0fc76beadbfc92e9f02 (patch)
tree31d9df6a69f2bcf5678c7882239a20d0862cea70 /layouts/post/single.html
parentdcff1e389f0474bf01bdacbad6313fbdadab5329 (diff)
feat: support multilingual mode
* fix: wrong lang attribute in multilingual mode - baseof.html * fix: rss link in multilingual mode - footer.html * fix: wrong tags, categories, home link in multilingual mode - other files ... This relates to #25
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r--layouts/post/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 6f8e545..58434b6 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -10,7 +10,7 @@
{{ with .Params.categories -}}
<div class="post-category">
{{ range . }}
- <a href="{{ "categories" | relURL }}/{{ . | urlize }}/"> {{ . }} </a>
+ <a href="{{ "categories" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
{{ end }}
</div>
{{- end }}
@@ -43,7 +43,7 @@
{{ with .Params.tags -}}
<div class="post-tags">
{{ range . }}
- <a href="{{ "tags" | relURL }}/{{ . | urlize }}/">{{ . }}</a>
+ <a href="{{ "tags" | relLangURL }}/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
</div>
{{- end }}