Table of Contents
Content How Tos 🔗
How to make a series of tutorials? 🔗
The default pagination might not fit your use case. For example, you might want to have a series of tutorials, which are ordered in a fixed way (not by publish date or title..).
For this, you can use Jinja variables to define a list of tutorials. Then use a for loop to render them:
Tutorials:
{% set tutorials = [
{ "label": "My tutorial 1", "url": "/tutorials/tutorial1.html" },
{ "label": "My tutorial 2", "url": "/tutorials/tutorial2.html" }
] %}
{% for tut in tutorials %}
- [{{ tut.label }}]({{ tut.url }})
{% endfor %}