{{ page.title }}
{{ page.description }}
{{ content }}
{% if page.prevPage %}
{% comment %}
If prevPage already contains the dir, either /docs/ or /development/, don't append to it.
Otherwise, it's a relative path so append the dir according to the page's permalink.
{% endcomment %}
{% if page.prevPage contains '/docs/' or page.prevPage contains '/development/' %}
← Prev
{% elsif page.permalink contains '/docs/' %}
← Prev
{% else %}
← Prev
{% endif %}
{% endif %}
{% if page.nextPage %}
{% comment %}
Same deal for nextPage.
{% endcomment %}
{% if page.nextPage contains '/docs/' or page.nextPage contains '/development/' %}
Next →
{% elsif page.permalink contains '/docs/' %}
Next →
{% else %}
Next →
{% endif %}
{% endif %}