mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
refactor(*): deprecated warn, Pages .URL -> .RelPermalink
This commit is contained in:
parent
d6227f9ce4
commit
024ebc1733
5 changed files with 13 additions and 13 deletions
|
@ -25,7 +25,7 @@
|
|||
{{ $element.Date.Format "01-02" }}
|
||||
</span>
|
||||
<span class="archive-post-title">
|
||||
<a href="{{ $element.URL }}" class="archive-post-link">
|
||||
<a href="{{ $element.RelPermalink }}" class="archive-post-link">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</span>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
{{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}
|
||||
</span>
|
||||
<span class="archive-post-title">
|
||||
<a href="{{ .URL }}" class="archive-post-link">
|
||||
<a href="{{ .RelPermalink }}" class="archive-post-link">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</span>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
<!-- changyan -->
|
||||
{{- if and .Site.Params.changyanAppid .Site.Params.changyanAppkey -}}
|
||||
<div id="SOHUCS" sid="{{ .URL }}"></div>
|
||||
<div id="SOHUCS" sid="{{ .RelPermalink }}"></div>
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
if (window.location.hostname === 'localhost') return;
|
||||
|
@ -100,7 +100,7 @@
|
|||
{{- if .Site.Params.valine.enable -}}
|
||||
<!-- id 将作为查询条件 -->
|
||||
{{- if .Site.Params.valine.visitor -}}
|
||||
<span id="{{ .URL | relURL }}" class="leancloud_visitors" data-flag-title="{{ .Title }}">
|
||||
<span id="{{ .RelPermalink | relURL }}" class="leancloud_visitors" data-flag-title="{{ .Title }}">
|
||||
<span class="post-meta-item-text">文章阅读量 </span>
|
||||
<span class="leancloud-visitors-count">0</span>
|
||||
<p></p>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue