made theme switching better

This commit is contained in:
Worble 2019-05-06 22:16:37 +01:00
parent dc3d52a7cb
commit df5fc9890b
4 changed files with 20 additions and 18 deletions

View file

@ -28,10 +28,10 @@
{% if config.build_search_index %}
<script defer type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") }}"></script>
<script defer type="text/javascript" src="{{ get_url(path="search_index.en.js") }}"></script>
{% endif %}
{% if config.extra.zulma_allow_theme_selection %}
<script type="text/javascript" src="{{ get_url(path="js/switchcss.js") }}"></script>
{% endif %}
{% endif %}
{% endblock js %}
{% block extra_head %}
@ -52,6 +52,7 @@
</head>
<body>
{% block body%}
{% block content %}
<!-- START NAV -->
{% block header %}
@ -87,6 +88,8 @@
{% if config.build_search_index %}
<script type="text/javascript" src="{{ get_url(path="js/search.js") }}"></script>
{% endif %}
{% endblock body%}
</body>
</html>