compose-theme/layouts/partials/pager.html

22 lines
742 B
HTML
Raw Permalink Normal View History

2024-07-26 17:08:59 +02:00
<div class="pager{{ if .Next }}{{ else }} pager_lean{{ end }}">
{{- $searchURL := "/search/" }}
{{ with .NextInSection }}
{{ if and (ne .RelPermalink $searchURL) (.InSection .) }}
<div class="pager_item prev">
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="prev">
<span class="pager_label">{{ .Title }}</span>
</a>
</div>
{{ end }}
{{ end }}
{{ with .PrevInSection }}
{{ if and (ne .RelPermalink $searchURL) (.InSection .) }}
<div class="pager_item next">
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="next">
<span class="pager_label">{{ .Title }}</span>
</a>
</div>
{{ end }}
{{ end }}
</div>