7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-12-27 06:10:19 +00:00
web-ansol.org/themes/academic/layouts/partials/section_pager.html
2020-06-11 12:46:16 +01:00

19 lines
693 B
HTML

{{ $str := "" }}
<div class="post-nav">
{{if .NextInSection}}
{{/* For the docs layout, prev/next labels are reversed. */}}
{{ if eq .Type "docs" }}{{ $str = "previous" }}{{else}}{{ $str = "next" }}{{end}}
<div class="post-nav-item">
<div class="meta-nav">{{ i18n $str }}</div>
<a href="{{.NextInSection.RelPermalink}}" rel="next">{{.NextInSection.Title}}</a>
</div>
{{end}}
{{if .PrevInSection}}
{{ if eq .Type "docs" }}{{ $str = "next" }}{{else}}{{ $str = "previous" }}{{end}}
<div class="post-nav-item">
<div class="meta-nav">{{ i18n $str }}</div>
<a href="{{.PrevInSection.RelPermalink}}" rel="prev">{{.PrevInSection.Title}}</a>
</div>
{{end}}
</div>