hugo

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

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

previous-next-links-in-section-with-title.html (726B)

    1 {{ if or .PrevInSection .NextInSection }}
    2 {{/* this div holds these a tags as a unit for flex-box display */}}
    3 	<div date-pref class="white">
    4 		{{if .NextInSection}}
    5 			<a href="{{.NextInSection.Permalink }}" class="br2 db f6 ph2 pv2 bg-light-gray white" title="{{ .NextInSection.Title }} ">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "fill" "#fff" "size" "12px") }} {{.NextInSection.Title}}</a>
    6 		{{end}}
    7 
    8 		{{if .PrevInSection}}
    9 			<a href="{{ .PrevInSection.Permalink }}" class="br2 db f6 pr1 mt3 bg-light-gray ph2 pv2 white" title="{{ .PrevInSection.Title }}">
   10 			{{.PrevInSection.Title}} {{ partial "svg/ic_chevron_right_black_24px.svg" (dict "fill" "#fff" "size" "12px") }}
   11 			</a>
   12 		{{end}}
   13 	</div>
   14 {{ end }}