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

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