Skip to content

Commit d9a7c72

Browse files
committed
fix: make navlinks work section-specfic
1 parent 12f2ab0 commit d9a7c72

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

layouts/partials/post_nav_links.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<nav class="paginav">
2+
{{- with .NextInSection }}
3+
<a class="prev" href="{{ .Permalink }}">
4+
<span class="title">« {{ i18n "next_page" }}</span>
5+
<br>
6+
<span>{{- .Name -}}</span>
7+
</a>
8+
{{- end }}
9+
{{- with .PrevInSection }}
10+
<a class="next" href="{{ .Permalink }}">
11+
<span class="title">{{ i18n "prev_page" }} »</span>
12+
<br>
13+
<span>{{- .Name -}}</span>
14+
</a>
15+
{{- end }}
16+
</nav>

0 commit comments

Comments
 (0)