blob: fee2a1b04dc8644b322e0c329ad43ae7d285eee2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{ if or .PrevInSection .NextInSection }}
{{/* this div holds these a tags as a unit for flex-box display */}}
<div date-pref class="text-white">
{{if .NextInSection}}
<a href="{{.NextInSection.RelPermalink }}" class="rounded block text-sm ph2 py-2 bg-gray-300 text-white" title="{{ .NextInSection.Title }} ">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "fill" "#fff" "size" "12px") }} {{.NextInSection.Title}}</a>
{{end}}
{{if .PrevInSection}}
<a href="{{ .PrevInSection.RelPermalink }}" class="rounded block text-sm pr1 mt3 bg-gray-300 ph2 py-2 text-white" title="{{ .PrevInSection.Title }}">
{{.PrevInSection.Title}} {{ partial "svg/ic_chevron_right_black_24px.svg" (dict "fill" "#fff" "size" "12px") }}
</a>
{{end}}
</div>
{{ end }}
|