mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-05-21 05:42:18 +02:00
Removed depcrated fields from footer.html
.NextPage and .PrevPage -> .Next and .Prev
This commit is contained in:
parent
6f6536e8ac
commit
9fb048d648
1 changed files with 4 additions and 4 deletions
|
@ -2,14 +2,14 @@
|
|||
<hr />
|
||||
|
||||
<div class="previous-post" style="display:inline-block;">
|
||||
{{ if .PrevPage }}
|
||||
<a class="link-reverse" href="{{ .PrevPage.Permalink }}?ref=footer">« {{ .PrevPage.Title | truncate 50 "..."}}</a>
|
||||
{{ if .Prev }}
|
||||
<a class="link-reverse" href="{{ .Prev.Permalink }}?ref=footer">« {{ .Prev.Title | truncate 50 "..."}}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="next-post", style="display:inline-block;float:right;">
|
||||
{{ if .NextPage }}
|
||||
<a class="link-reverse" href="{{ .NextPage.Permalink }}?ref=footer">{{ .NextPage.Title | truncate 50 "..." }} »</a>
|
||||
{{ if .Next }}
|
||||
<a class="link-reverse" href="{{ .Next.Permalink }}?ref=footer">{{ .Next.Title | truncate 50 "..." }} »</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue