--- layout: nl_default --- {% for tutorial in site.data.nl_sitemap.contents %} {% if tutorial.title == page.title %} {% assign tutorial_index = forloop.index0 %} {% assign content_length = forloop.length %} {% assign previous = tutorial_index | minus: 1 %} {% assign next = tutorial_index | plus: 1 %} {% endif %} {% endfor %}