hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

previous-next-links-in-section.html (669B)

    1 {{ if or .PrevInSection .NextInSection }}
    2 {{/* this div holds these a tags as a unit for flex-box display */}}
    3 	<div date-pref>
    4 		{{if .NextInSection}}
    5 			<a href="{{.NextInSection.Permalink }}" class="dib f6 pl1 hover-bg-light-gray br-100" title="{{ .NextInSection.Title }} ">
    6 				{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "fill" "#0594CB" "size" "30px") }}
    7 			</a>
    8 		{{end}}
    9 
   10 		{{if .PrevInSection}}
   11 			<a href="{{ .PrevInSection.Permalink }}" class="dib f6 pr1 hover-bg-light-gray br-100" title="{{ .PrevInSection.Title }}">
   12 			{{ partial "svg/ic_chevron_right_black_24px.svg" (dict "fill" "#0594CB" "size" "30px") }}
   13 			</a>
   14 		{{end}}
   15 	</div>
   16 {{ end }}