Fixed version selection when using instant loading

This commit is contained in:
squidfunk 2021-03-07 17:12:43 +01:00
parent f9cfd87708
commit 526fbed394
4 changed files with 5 additions and 44 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -217,7 +217,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% 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"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -168,6 +168,10 @@ const control$ = merge(
...getComponentElements("header") ...getComponentElements("header")
.map(el => mountHeader(el, { viewport$, header$, main$ })), .map(el => mountHeader(el, { viewport$, header$, main$ })),
/* Header title */
...getComponentElements("header-title")
.map(el => mountHeaderTitle(el, { viewport$, header$ })),
/* Search */ /* Search */
...getComponentElements("search") ...getComponentElements("search")
.map(el => mountSearch(el, { index$, keyboard$ })), .map(el => mountSearch(el, { index$, keyboard$ })),
@ -188,10 +192,6 @@ const content$ = defer(() => merge(
...getComponentElements("content") ...getComponentElements("content")
.map(el => mountContent(el, { target$, viewport$, print$ })), .map(el => mountContent(el, { target$, viewport$, print$ })),
/* Header title */
...getComponentElements("header-title")
.map(el => mountHeaderTitle(el, { viewport$, header$ })),
/* Sidebar */ /* Sidebar */
...getComponentElements("sidebar") ...getComponentElements("sidebar")
.map(el => el.getAttribute("data-md-type") === "navigation" .map(el => el.getAttribute("data-md-type") === "navigation"