21 lines
649 B
HTML
21 lines
649 B
HTML
{{ if .FirstSection }}
|
|
{{- $pages := where .FirstSection.RegularPagesRecursive "Draft" "eq" false -}}
|
|
{{- $previousInSection := $pages.Prev . -}}
|
|
{{- $nextInSection := $pages.Next . -}}
|
|
|
|
{{ if or $previousInSection $nextInSection }}
|
|
<ul class="page-navigation">
|
|
{{ with $nextInSection -}}
|
|
<li class="previous-page">
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a>
|
|
</li>
|
|
{{- end }}
|
|
|
|
{{ with $previousInSection -}}
|
|
<li class="next-page">
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ end }}
|