jlelse
/
Indieroad
Archived
1
Fork 0
This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Indieroad/layouts/partials/post_nav.html

17 lines
654 B
HTML

{{ if .Param "post_navigation" }}
{{ if or (.PrevInSection) (.NextInSection) }}
<nav class="post-nav">
{{ with .PrevInSection }}
<div class="item item--prev">
<a class="link" href="{{.RelPermalink}}" rel="prev"><span class="caption">{{ T "post_nav_prev" }}</span>{{ with .Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
</div>
{{ end }}
{{ with .NextInSection }}
<div class="item item--next">
<a class="link" href="{{.RelPermalink}}" rel="next"><span class="caption">{{ T "post_nav_next" }}</span>{{ with .Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
</div>
{{ end }}
</nav>
{{ end }}
{{ partial "related.html" . }}
{{ end }}