mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed version selection when using instant loading
This commit is contained in:
parent
f9cfd87708
commit
526fbed394
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -217,7 +217,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.45ec54dd.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.35272152.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -168,6 +168,10 @@ const control$ = merge(
|
||||
...getComponentElements("header")
|
||||
.map(el => mountHeader(el, { viewport$, header$, main$ })),
|
||||
|
||||
/* Header title */
|
||||
...getComponentElements("header-title")
|
||||
.map(el => mountHeaderTitle(el, { viewport$, header$ })),
|
||||
|
||||
/* Search */
|
||||
...getComponentElements("search")
|
||||
.map(el => mountSearch(el, { index$, keyboard$ })),
|
||||
@ -188,10 +192,6 @@ const content$ = defer(() => merge(
|
||||
...getComponentElements("content")
|
||||
.map(el => mountContent(el, { target$, viewport$, print$ })),
|
||||
|
||||
/* Header title */
|
||||
...getComponentElements("header-title")
|
||||
.map(el => mountHeaderTitle(el, { viewport$, header$ })),
|
||||
|
||||
/* Sidebar */
|
||||
...getComponentElements("sidebar")
|
||||
.map(el => el.getAttribute("data-md-type") === "navigation"
|
||||
|
Loading…
Reference in New Issue
Block a user