🐛 Fixed the post's link URL.

This commit is contained in:
凡梦星尘 2022-06-16 17:39:16 +08:00
parent 2294f936e4
commit 78250ed508
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
{{- if $.IsHome }} {{- if $.IsHome }}
{{- if and .Site.Params.readMoreBtn (not .Params.Expand) }} {{- if and .Site.Params.readMoreBtn (not .Params.Expand) }}
<div class="post-button"> <div class="post-button">
<a class="btn" href="{{ .Permalink }}#more" rel="contents"> <a class="btn" href="{{ .RelPermalink | relLangURL }}#more" rel="contents">
{{ T "PostReadMore" }} &raquo; {{ T "PostReadMore" }} &raquo;
</a> </a>
</div> </div>

View File

@ -12,7 +12,7 @@
<i class="fa fa-external-link-alt"></i> <i class="fa fa-external-link-alt"></i>
</a> </a>
{{- else }} {{- else }}
<a href="{{ .Permalink }}" itemprop="url" class="post-title-link">{{ .Title }}</a> <a href="{{ .RelPermalink | relLangURL }}" itemprop="url" class="post-title-link">{{ .Title }}</a>
{{- end }} {{- end }}
{{- else }} {{- else }}
{{- .Title }} {{- .Title }}