Website/themes/mainroad/layouts/partials/post_nav.html

16 lines
790 B
HTML
Raw Permalink Normal View History

2018-07-11 20:45:17 +02:00
{{- if .Site.Params.post_navigation }}
{{- if or (.PrevInSection) (.NextInSection) }}
<nav class="post-nav row clearfix">
{{- if .PrevInSection }}
<div class="post-nav__item post-nav__item--prev col-1-2">
<a class="post-nav__link" href="{{.PrevInSection.RelPermalink}}" rel="prev"><span class="post-nav__caption">«&thinsp;{{ T "post_nav_prev" }}</span><p class="post-nav__post-title">{{.PrevInSection.Title}}</p></a>
</div>
{{- end }}
{{- if .NextInSection }}
<div class="post-nav__item post-nav__item--next col-1-2">
<a class="post-nav__link" href="{{.NextInSection.RelPermalink}}" rel="next"><span class="post-nav__caption">{{ T "post_nav_next" }}&thinsp;»</span><p class="post-nav__post-title">{{.NextInSection.Title}}</p></a>
</div>
{{- end }}
</nav>
{{- end }}
{{- end }}