mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-12-22 15:48:46 +00:00
16 lines
570 B
HTML
16 lines
570 B
HTML
<nav class="section-nav">
|
|
<div class="container">
|
|
<div class="buttons">
|
|
{{ $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>
|
|
</div>
|
|
</nav>
|