From f05ae2f875ef9547ab249ff9c882ce6a481d669c Mon Sep 17 00:00:00 2001 From: LawssssCat <1191693505@qq.com> Date: Thu, 2 Jun 2022 18:26:05 +0800 Subject: [PATCH] fix: assets 404 when baseurl isn't empty and assets is 'self_host' --- _includes/head.html | 12 ++++++------ _includes/js-selector.html | 8 ++++---- _includes/mermaid.html | 2 +- _includes/search-loader.html | 2 +- _includes/toc.html | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index bd267e0c5f7..aaa23a091af 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -68,7 +68,7 @@ {% endfor %} - + {% endif %} @@ -90,25 +90,25 @@ {% endif %} - + - + {% if site.toc and page.toc %} - + {% endif %} {% if page.layout == 'page' or page.layout == 'post' %} - + {% endif %} - + {% unless site.theme_mode %} {% include mode-toggle.html %} diff --git a/_includes/js-selector.html b/_includes/js-selector.html index c0402bfadbb..89b93a450de 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -7,7 +7,7 @@ {% if page.layout == 'post' %} {% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %} - + {% endif %} {% endif %} @@ -79,14 +79,14 @@ } }; - - + {% endif %} - + {% if jekyll.environment == 'production' %} diff --git a/_includes/mermaid.html b/_includes/mermaid.html index 51eea696e6b..e89a12edcb3 100644 --- a/_includes/mermaid.html +++ b/_includes/mermaid.html @@ -2,7 +2,7 @@ mermaid-js loader --> - + + +
{{- site.data.locales[lang].panel.toc -}}