{% set site_url = config.site_url | default(nav.homepage.url, true) | url %} {% if not config.use_directory_urls and site_url == "." %} {% set site_url = site_url ~ "/index.html" %} {% endif %}