mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-12-27 00:28:46 +00:00
15 lines
518 B
HTML
15 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>
|