{% assign docs = site.data.navigation_docs | map: 'docs' | join: ',' | split: ',' %} {% for document in docs %} {% assign document_url = document | prepend:"/docs/" | append:"/" %} {% if document_url == page.url %}