Skip to content

Commit 3d9714a

Browse files
committed
Fix Post Order In "Read More" Section
1 parent 9a65a1b commit 3d9714a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{ if or .PrevInSection .NextInSection }}
2+
<div class="pagination">
3+
<div class="pagination__title">
4+
<span class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</span>
5+
<hr />
6+
</div>
7+
<div class="pagination__buttons">
8+
{{ if .PrevInSection }}
9+
<a href="{{ .PrevInSection.Permalink }}" class="button inline prev" aria-label="Next Post: {{ .PrevInSection.Title }}">
10+
&lt; [<span class="button__text">{{ .PrevInSection.Title }}</span>]
11+
</a>
12+
{{ end }}
13+
{{ if and .PrevInSection .NextInSection }}
14+
::
15+
{{ end }}
16+
{{ if .NextInSection }}
17+
<a href="{{ .NextInSection.Permalink }}" class="button inline next" aria-label="Previous Post: {{ .NextInSection.Title }}">
18+
[<span class="button__text">{{ .NextInSection.Title }}</span>] &gt;
19+
</a>
20+
{{ end }}
21+
</div>
22+
</div>
23+
{{ end }}

0 commit comments

Comments
 (0)