Skip to content

Commit bdf6484

Browse files
committed
allow page-pagination to be set to next or prev to fine-tune which direction is shown
1 parent 02b05b4 commit bdf6484

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/partials/pagination.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{{#unless (eq page.attributes.pagination undefined)}}
22
{{#if (or page.previous page.next)}}
33
<nav class="pagination">
4+
{{#if (ne page.attributes.pagination 'next')}}
45
{{#with page.previous}}
56
<span class="prev"><a href="{{{relativize ./url}}}">{{{./content}}}</a></span>
67
{{/with}}
8+
{{/if}}
9+
{{#if (ne page.attributes.pagination 'prev')}}
710
{{#with page.next}}
811
<span class="next"><a href="{{{relativize ./url}}}">{{{./content}}}</a></span>
912
{{/with}}
13+
{{/if}}
1014
</nav>
1115
{{/if}}
1216
{{/unless}}

0 commit comments

Comments
 (0)