hugo-theme-hyde-hyde/layouts/partials/page-single/post-navigation.html

18 lines
628 B
HTML
Raw Permalink Normal View History

{{ $enabledPostNavigation := .Site.Params.postNavigation | default true }}
{{ if $enabledPostNavigation }}
2018-09-12 02:32:10 +00:00
<div class="navigation navigation-single">
{{ with .PrevInSection }}
2018-09-12 02:32:10 +00:00
<a href="{{ .RelPermalink }}" class="navigation-prev">
<i aria-hidden="true" class="fa fa-chevron-left"></i>
<span class="navigation-tittle">{{ .Title }}</span>
</a>
{{ end }}
{{ with .NextInSection }}
2018-09-12 02:32:10 +00:00
<a href="{{ .RelPermalink }}" class="navigation-next">
<span class="navigation-tittle">{{ .Title }}</span>
<i aria-hidden="true" class="fa fa-chevron-right"></i>
</a>
{{ end }}
2018-07-20 20:32:00 +00:00
</div>
{{ end }}