mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-24 10:21:21 +00:00
16 lines
518 B
HTML
16 lines
518 B
HTML
<nav class="section-nav">
|
|
<div class="container">
|
|
{{ $page := .Page }}
|
|
{{ with .Next }}
|
|
{{ if eq .FirstSection $page.FirstSection }}
|
|
<a class="previous" href="{{.Permalink}}"><span class="arrow">←</span><span class="text">Previous page:<br/>{{.Title}}</span></a>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .Prev }}
|
|
{{ if eq .FirstSection $page.FirstSection }}
|
|
<a class="next" href="{{.Permalink}}"><span class="text">Next page:<br/>{{.Title}}</span><span class="arrow">→</span></a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</nav>
|