🐛 Fixed the post footer's tag link visit, closed #15

This commit is contained in:
凡梦星尘 2022-07-05 10:04:25 +08:00
parent 8aad5052df
commit 98cbde4863
2 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ date: {{ .Date }}
lastmod: {{ .Date }} lastmod: {{ .Date }}
categories: categories:
- -
tags: tags:
- -
- -
@ -30,7 +30,7 @@ tags:
# 在当前页面开启或关闭评论功能 # 在当前页面开启或关闭评论功能
# Switch to enabled or disabled comment plugins in this post # Switch to enabled or disabled comment plugins in this post
#comment: #comment:
# enable: false # enable: false
# 开启文章目录功能 # 开启文章目录功能
# Enable table of content # Enable table of content
#toc: false #toc: false

View File

@ -1,9 +1,9 @@
{{- with .Params.tags }} {{- with .Params.tags }}
{{- if gt (len .) 0 }}
<div class="post-tags"> <div class="post-tags">
{{ range . }} {{ range . }}
<a href="{{ . }}">{{ . }}</a> <a href="{{ "/tags/" | relLangURL }}{{ . | urlize | lower }}">
{{ . }}
</a>
{{- end }} {{- end }}
</div> </div>
{{- end }} {{- end }}
{{- end }}