gmgauthier.com/layouts/partials/prev_next_post.html

32 lines
893 B
HTML
Raw Normal View History

2024-09-07 12:55:18 +00:00
{{ if or (.Next) (.Prev) }}
2021-03-30 20:50:34 +00:00
<div class="prev-next-post pure-g">
<div class="pure-u-1-24" style="text-align: left;">
{{ if .PrevInSection }}
<a href="{{ .PrevInSection.Permalink }}"><i class="fa fa-chevron-left"></i></a>
{{ end }}
</div>
<div class="pure-u-10-24">
{{ if .PrevInSection }}
<nav class="prev">
<a href="{{ .PrevInSection.Permalink }}">{{ .PrevInSection.Title }}</a>
</nav>
{{ end }}
</div>
<div class="pure-u-2-24">
&nbsp;
</div>
<div class="pure-u-10-24">
{{ if .NextInSection }}
<nav class="next">
<a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }}</a>
</nav>
{{ end }}
</div>
<div class="pure-u-1-24" style="text-align: right;">
{{ if .NextInSection }}
<a href="{{ .NextInSection.Permalink }}"><i class="fa fa-chevron-right"></i></a>
{{ end }}
</div>
</div>
{{ end }}