{% assign urlArray = page.url | replace: '/', ' ' | split: " " %} {% assign activePlatform = urlArray[0] %} {% assign platform = site.data.routes.platforms | where: "href", activePlatform | first %} {% assign activeHub = urlArray[2] %} {% assign hub = platform.hubs | where: "href", activeHub | first %} {% assign activeSection = urlArray[3] | remove: ".html" %} {% assign section = hub.sections | where: "href", activeSection | first %}