hugo-theme-paradox/layouts/partials/nav-section.html

17 lines
570 B
HTML
Raw Permalink Normal View History

2022-10-16 22:15:34 +00:00
<nav class="section-nav">
<div class="container">
2022-12-19 15:10:26 +00:00
<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>
2022-10-16 22:15:34 +00:00
</div>
2022-10-17 14:46:58 +00:00
</nav>