Skip to content

Commit a3fa1f3

Browse files
committed
fix PrevPage and NextPage Hugo theme issue
1 parent c0908fc commit a3fa1f3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

themes/poison/layouts/partials/post/navigation.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
</ul>
2323
</p>
2424
{{ else }}
25-
{{ if .PrevPage }}
26-
{{ if eq .PrevPage.Section "posts" }}
27-
<a class="previous-post" href="{{ .PrevPage.Permalink }}?ref=footer">« {{ .PrevPage.Title | truncate 50 "..."}}</a>
25+
{{ if .Prev }}
26+
{{ if eq .Prev.Section "posts" }}
27+
<a class="previous-post" href="{{ .Prev.Permalink }}?ref=footer">« {{ .Prev.Title | truncate 50 "..."}}</a>
2828
{{ end }}
2929
{{ end }}
30-
{{ if .NextPage }}
31-
{{ if eq .NextPage.Section "posts" }}
32-
<a class="next-post" href="{{ .NextPage.Permalink }}?ref=footer">{{ .NextPage.Title | truncate 50 "..." }} »</a>
30+
{{ if .Next }}
31+
{{ if eq .Next.Section "posts" }}
32+
<a class="next-post" href="{{ .Next.Permalink }}?ref=footer">{{ .Next.Title | truncate 50 "..." }} »</a>
3333
{{ end }}
3434
{{ end }}
3535
{{ end }}

0 commit comments

Comments
 (0)