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>
{% 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 %}

View File

@ -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"