{%comment%} check for the presence of the path in an array of paths. {%endcomment%} {% for block in site.data.map %} {% for item in block[page.lang] %} {% if item == page.path %} {% for trans in block %} {% assign trans_path = trans[1] %} {% assign posts = site.posts | where:"path",trans_path %} {% for item in posts %} {% endfor %} {% assign pages = site.pages | where:"path",trans_path %} {% for item in pages %} {% endfor %} {% endfor %} {% endif %} {% endfor %} {% endfor %}