Next/prev page links
This commit is contained in:
@@ -7,5 +7,15 @@
|
|||||||
{{ end }}</p>
|
{{ end }}</p>
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
<small>Published on {{ .Date.Format "2006-01-02" }}</small>
|
<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>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user