Back to Pouchdb

Guide

docs/_layouts/guide.html

9.0.0478 B
Original Source

--- layout: 2ColLeft --- {{ content }} {% assign guides = collections.guides | sort: 'index' %} {% for guide in guides %} {% if title == guide.data.title %} {% assign prev = guide.data.index | minus: 2 %} {% assign next = guide.data.index %}

{% unless prev == -1 %} - ← {{ guides[prev].data.title }} {% endunless %} {% if guides[next] %} - {{ guides[next].data.title }} → {% endif %} {% endif %} {% endfor %}