mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Fix next/prev links to be same-section
next/prev links for posts shouldn't navigate to non-post pages like "about" and "resume".
This commit is contained in:
parent
82036d0df9
commit
db0d16e5b5
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<p>
|
<p>
|
||||||
{{- if .Prev -}}<a href="{{ .Prev.Permalink }}">Previous</a>{{- end -}}
|
{{- if .PrevInSection -}}<a href="{{ .PrevInSection.Permalink }}">Previous</a>{{- end -}}
|
||||||
{{- if and (.Prev) (.Next) }} · {{ end -}}
|
{{- if and (.PrevInSection) (.NextInSection) }} · {{ end -}}
|
||||||
{{- if .Next -}}<a href="{{ .Next.Permalink }}">Next</a>{{- end -}}
|
{{- if .NextInSection -}}<a href="{{ .NextInSection.Permalink }}">Next</a>{{- end -}}
|
||||||
</p>
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
<footer class="comment">
|
<footer class="comment">
|
||||||
|
|
Loading…
Reference in a new issue