portfolios_exemple2/themes/academia-hugo/layouts/partials/section_pager.html

19 lines
693 B
HTML
Raw Normal View History

2021-12-31 12:44:26 +01:00
{{ $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>