{% set site_url = config.site_url | d(nav.homepage.url, true) | url %} {% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %} {% set site_url = site_url ~ "/index.html" %} {% endif %} {% set class = "md-nav md-nav--primary" %} {% if "navigation.tabs" in features %} {% set class = class ~ " md-nav--lifted" %} {% endif %} {% if "toc.integrate" in features %} {% set class = class ~ " md-nav--integrated" %} {% endif %}