work.suroh.tk/node_modules/@11ty/eleventy/test/stubs/paged/pagedpermalinkif.njk

13 lines
272 B
Plaintext
Raw Normal View History

2019-12-02 12:22:45 +00:00
---
pagination:
data: items
size: 2
items:
- item1
- item2
- item3
- item4
permalink: paged/{% if pagination.pageNumber > 0 %}page-{{ pagination.pageNumber }}/{% endif %}index.html
---
<ol>{% for item in pagination.items %}<li>{{ item }}</li>{% endfor %}</ol>