{% for link in site.links %}
{{ link.title }}
{% endfor %}
Contents
{% for item in site.sidebar %}
{{ item.title }}
{% endfor %}
{{ html | safe }}
{% for item in site.sidebar %} {% if item.title == page.title %} {% set current = site.sidebar.index(item) %} {% set last = site.sidebar.index(site.sidebar[-1]) %} {% if current == 0 %}
{{ site.sidebar[current+1].title }} -->
{% elif current == last %}
<-- {{ site.sidebar[current-1].title }}
{% else %}
<-- {{ site.sidebar[current-1].title }}
{{ site.sidebar[current+1].title }} -->
{% endif %} {% endif %} {% endfor %}