--- layout: page --- {% include vars.html %} {% assign matched_guides = site.data.guides | where: "id", page.guide %} {% assign current_guide = matched_guides[0] %} {% assign guides_size = current_guide.pages | size | plus: 2 %} {% for i in (0..guides_size) %} {% if current_guide.pages[i].id == page.id %} {% assign guide_prev_index = i | minus: 1 %} {% assign guide_next_index = i | plus: 1 %} {% break %} {% endif %} {% endfor %} {% assign guide_prev = current_guide.pages[guide_prev_index] %} {% assign guide_next = current_guide.pages[guide_next_index] %}
{% include debug/toc.html content=page.content %}
{{content}}

{% if guide_prev_index > -1 %} ← {{i18n[guide_prev.id]}} {% endif %} {% if guide_next %} {{i18n[guide_next.id]}} → {% endif %}
{% if page.additional_reading_tags %} {% include additional-reading.html tags=page.additional_reading_tags %} {% endif %}