{% assign item = include.item %} {% assign section = include.section %} {% assign active = false %} {% if item.path %} {% if page.url contains section %} {% assign active = true %} {% endif %} {% if section == "welcome" and item.path == "/" and page.url == "/" %} {% assign active = true %} {% endif %} {% endif %} {% assign subitems = item.items %}