Next/prev page links

This commit is contained in:
2020-07-17 19:32:19 +01:00
parent 293be2cfed
commit 24013b1ceb

View File

@@ -7,5 +7,15 @@
{{ end }}</p>
{{.Content}}
<small>Published on {{ .Date.Format "2006-01-02" }}</small>
<div class="next-post" style="padding-top: 1em;">
{{ if .NextPage }}
Next: <a class="link-reverse" href="{{ .NextPage.Permalink }}"> {{ .NextPage.Title | truncate 50 "..." }}</a> »
{{ end }}
</div>
<div class="previous-post" style="padding-top: 1em; padding-bottom: 2em;">
{{ if .PrevPage }}
« Previous: <a class="link-reverse" href="{{ .PrevPage.Permalink }}"> {{ .PrevPage.Title | truncate 50 "..."}}</a>
{{ end }}
</div>
</article>
{{ end }}