mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-14 23:41:20 +00:00
17 lines
570 B
HTML
17 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>
|