Merge pull request #35 from Rinma/lang-sensitiv-tags

made tag link language-sensitiv
This commit is contained in:
Radek Kozieł 2019-05-24 09:51:47 +02:00 committed by GitHub
commit 5091a93ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
{{ if .Params.tags }} {{ if .Params.tags }}
<span class="post-tags"> <span class="post-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absURL }}"> #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}} {{- . -}}
</a>&nbsp; </a>&nbsp;
{{ end }} {{ end }}

View File

@ -16,7 +16,7 @@
{{ if .Params.tags }} {{ if .Params.tags }}
<span class="post-tags"> <span class="post-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" .)) | absURL }}">{{ . }}</a>&nbsp; #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }} {{ end }}
</span> </span>
{{ end }} {{ end }}