1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 17:52:11 +00:00
seirdy.one/layouts/partials/prev-next.html
Rohan Kumar fe231b1237
Important announcement from the Scarfolk Council
For more information, please re-read
2022-10-24 12:48:14 -07:00

19 lines
563 B
HTML

{{ $name := "post" -}}
{{- if eq .Page.Section "notes" -}}
{{- $name = "note" -}}
{{- end -}}
<hr />
<aside aria-labelledby="continue-hd">
<nav aria-labelledby="continue-hd">
<h2 id="continue-hd">Continue reading</h2>
<ul>
{{- with .PrevInSection }}
<li>Previous {{ $name }}: <a href="{{ .Permalink }}" rel="prev">{{ .Title }}</a></li>
{{- end -}}
{{- with .NextInSection }}
<li>Next {{ $name }}: <a href="{{ .Permalink }}" rel="next">{{ .Title }}</a></li>
{{- end }}
</ul>
</nav>
<p>For more information, please re-read.</p>
</aside>