From 454339bd359b8708aaf1b2cfb22098b158d475d3 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 4 Oct 2020 18:37:52 +0200 Subject: [PATCH] Fixed site_url (link behind home button) for usage from file:// --- material/partials/header.html | 6 +++++- material/partials/nav.html | 6 +++++- src/partials/header.html | 8 +++++++- src/partials/nav.html | 8 +++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/material/partials/header.html b/material/partials/header.html index 707fc33f5..20e88e8cf 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -1,9 +1,13 @@ {#- This file was automatically generated - do not edit -#} +{% 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 %}