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
668 B
HTML
Raw Normal View History

2019-09-08 07:05:05 +00:00
{{- if .Param "post_navigation" }}
2019-09-03 15:50:00 +00:00
{{- if or (.PrevInSection) (.NextInSection) }}
<nav class="post-nav">
{{- if .PrevInSection }}
<div class="item item--prev">
<a class="link" href="{{.PrevInSection.RelPermalink}}" rel="prev"><span class="caption">{{ T "post_nav_prev" }}</span><p class="post-title">{{.PrevInSection.Title}}</p></a>
</div>
{{- end }}
{{- if .NextInSection }}
<div class="item item--next">
<a class="link" href="{{.NextInSection.RelPermalink}}" rel="next"><span class="caption">{{ T "post_nav_next" }}</span><p class="post-title">{{.NextInSection.Title}}</p></a>
</div>
{{- end }}
</nav>
{{- end }}
2019-10-09 18:35:33 +00:00
{{ partial "related.html" . }}
2019-09-03 15:50:00 +00:00
{{- end }}