mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02: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:
parent
b224d003bb
commit
65a19e4d44
1 changed files with 6 additions and 0 deletions
|
@ -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 won’t show up on the mailing list, but I’ll 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>
|
||||
|
|
Loading…
Reference in a new issue