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:
parent
ce7ff4dcb0
commit
5c03e8fc9b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user