{% if page.path != "index.md" %}
{% if page.path != "pages/tutorials.md" %}
{% endif %}
{% for num in (0..site.data.pages.size) %}
{% assign page2 = site.data.pages[num] %}
{% if page2.url == page.permalink %}
{% assign next_i = forloop.index0 | plus: 1 %}
{% assign prev_i = forloop.index0 | minus: 1 %}
{% if next_i == site.data.pages[num] %}
{% assign next_i = 1 %}
{% endif %}
{% endif %}
{% endfor %}
{{ content }}
{% include template-related.html %}
{% if page.path != "pages/tutorials.md" %}
{% endif %}
{% else %}
{{ content }}
{% endif %}