1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

Add prev/next links

Some browsers/addons allow shortcuts for going to the next/prev page by
matching links with the word "next" or "previous"; Tridactyl is one
example. I thought I'd add a next/prev link to make it easy to binge
this blog.
This commit is contained in:
Rohan Kumar 2021-06-22 22:44:52 -07:00
parent b224d003bb
commit 65a19e4d44
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -23,6 +23,12 @@
</article>
</div>
<hr>
<p>
{{- if .Prev -}}<a href="{{ .Prev.Permalink }}">Previous</a>{{- end -}}
{{- if and (.Prev) (.Next) }} · {{ end -}}
{{- if .Next -}}<a href="{{ .Next.Permalink }}">Next</a>{{- end -}}
</p>
<hr>
<footer class="comment">
<p><a href="mailto:~seirdy/seirdy.one-comments@lists.sr.ht">Send an email</a> to leave a comment in the <a href="https://lists.sr.ht/~seirdy/seirdy.one-comments">mailing list</a> for seirdy.one. You'll have to send in plain text; please <a href="https://useplaintext.email/">learn how</a>. Alternatively, send your email <a href="mailto:seirdy@seirdy.one">directly to me</a>; it wont show up on the mailing list, but Ill see it.</p>
<p>This site also supports <a href="https://indieweb.org/webmention">Webmentions</a>. Webmentions received for this post will appear below after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don't support them.</p>