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

16 lines
518 B
HTML
Raw Normal View History

2022-10-16 22:15:34 +00:00
<nav class="section-nav">
<div class="container">
2022-10-17 14:46:58 +00:00
{{ $page := .Page }}
{{ with .Next }}
{{ if eq .FirstSection $page.FirstSection }}
2022-10-16 22:15:34 +00:00
<a class="previous" href="{{.Permalink}}"><span class="arrow"></span><span class="text">Previous page:<br/>{{.Title}}</span></a>
{{ end }}
2022-10-17 14:46:58 +00:00
{{ end }}
{{ with .Prev }}
{{ if eq .FirstSection $page.FirstSection }}
2022-10-16 22:15:34 +00:00
<a class="next" href="{{.Permalink}}"><span class="text">Next page:<br/>{{.Title}}</span><span class="arrow"></span></a>
{{ end }}
2022-10-17 14:46:58 +00:00
{{ end }}
2022-10-16 22:15:34 +00:00
</div>
2022-10-17 14:46:58 +00:00
</nav>