1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-30 18:24:35 +01:00

Adjusted instant loading for new favicon link

This commit is contained in:
squidfunk 2021-03-09 21:42:30 +01:00
parent ce7ff4dcb0
commit 5c03e8fc9b
4 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@
{% if page.canonical_url %}
<link rel="canonical" href="{{ page.canonical_url }}">
{% endif %}
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
<link rel="icon" href="{{ config.theme.favicon | url }}">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-7.0.5">
{% endblock %}
{% block htmltitle %}
@ -217,7 +217,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.c9759047.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.659e5423.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -168,7 +168,7 @@ export function setupInstantLoading(
}
/* Hack: ensure absolute favicon link to omit 404s when switching */
const favicon = getElement<HTMLLinkElement>("link[rel='shortcut icon']")
const favicon = getElement<HTMLLinkElement>("link[rel=icon]")
if (typeof favicon !== "undefined")
favicon.href = favicon.href