aboutsummaryrefslogtreecommitdiff
path: root/layouts/post
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-09-08 22:42:48 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-09-08 22:42:48 +0800
commit024ebc173320212e562cc0baa2a72a7ea3405180 (patch)
treed0562f7009787d7a7668fd58803893015419d390 /layouts/post
parentd6227f9ce4228b1c13c2295a4ad41d674aa50fa7 (diff)
refactor(*): deprecated warn, Pages .URL -> .RelPermalink
Diffstat (limited to 'layouts/post')
-rw-r--r--layouts/post/single.html4
-rw-r--r--layouts/post/summary.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index fcda0dd..f19cb9b 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -53,14 +53,14 @@
<!-- Post Pagination -->
<nav class="post-nav">
{{ with .NextInSection -}}
- <a class="prev" href="{{ .URL }}">
+ <a class="prev" href="{{ .RelPermalink }}">
<i class="iconfont icon-left"></i>
<span class="prev-text nav-default">{{ .Title }}</span>
<span class="prev-text nav-mobile">{{ T "prevPost" }}</span>
</a>
{{- end }}
{{ with .PrevInSection -}}
- <a class="next" href="{{ .URL }}">
+ <a class="next" href="{{ .RelPermalink }}">
<span class="next-text nav-default">{{ .Title }}</span>
<span class="next-text nav-mobile">{{ T "nextPost" }}</span>
<i class="iconfont icon-right"></i>
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
index c06e292..38c45f4 100644
--- a/layouts/post/summary.html
+++ b/layouts/post/summary.html
@@ -1,6 +1,6 @@
<article class="post">
<header class="post-header">
- <h1 class="post-title"><a class="post-link" href="{{ .URL }}">{{ .Title }}</a></h1>
+ <h1 class="post-title"><a class="post-link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<div class="post-meta">
<span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
{{ with .Params.categories -}}
@@ -22,7 +22,7 @@
{{ .Summary }}
</div>
<div class="read-more">
- <a href="{{ .URL }}" class="read-more-link">{{ T "readMore" }}</a>
+ <a href="{{ .RelPermalink }}" class="read-more-link">{{ T "readMore" }}</a>
</div>
</div>
</article>