👌 update depreciated code
change depreciated .URL to .RelPermalink thx @VincentTam
This commit is contained in:
parent
1f074b4137
commit
8b4cb5417b
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,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>
|
||||
|
@ -46,12 +46,12 @@
|
|||
<ul class="pager main-pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="previous">
|
||||
<a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a>
|
||||
<a href="{{ .RelPermalink }}page/{{ .Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="next">
|
||||
<a href="{{ .URL }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a>
|
||||
<a href="{{ .RelPermalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue