1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Fixed logo URL not being updated when using instant loading

This commit is contained in:
squidfunk 2021-03-07 19:36:51 +01:00
parent 5037094b12
commit 859173ef88
8 changed files with 10 additions and 7 deletions

View File

@ -217,7 +217,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.5cf3e710.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.016d52fb.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -3,7 +3,7 @@
-#}
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header.title') }}">
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}">
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}" data-md-component="home">
{% include "partials/logo.html" %}
</a>
<label class="md-header__button md-icon" for="__drawer">

View File

@ -10,7 +10,7 @@
{% endif %}
<nav class="{{ class }}" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}" data-md-component="home">
{% include "partials/logo.html" %}
</a>
{{ config.site_name }}

View File

@ -281,6 +281,7 @@ export function setupInstantLoading(
/* Components */
"[data-md-component=announce]",
"[data-md-component=header-topic]",
"[data-md-component=home], .md-logo", // compat
"[data-md-component=container]",
"[data-md-component=skip]"
]) {

View File

@ -33,6 +33,7 @@
title="{{ config.site_name | e }}"
class="md-header__button md-logo"
aria-label="{{ config.site_name }}"
data-md-component="home"
>
{% include "partials/logo.html" %}
</a>

View File

@ -43,6 +43,7 @@
title="{{ config.site_name | e }}"
class="md-nav__button md-logo"
aria-label="{{ config.site_name }}"
data-md-component="home"
>
{% include "partials/logo.html" %}
</a>