more changes to css theming; it should now be much more responsive, have less FOUC's and not load a bunch of unused css when it isn't in use.

This commit is contained in:
Robert Clarke 2019-05-07 13:46:46 +01:00
parent 1e88a4bdcf
commit 09c17330d6
4 changed files with 104 additions and 81 deletions

View file

@ -16,23 +16,20 @@
{% block title %}{{ config.title }}{% endblock title %}
</title>
{% block css %}
{{ index_macros::css() }}
{% endblock css %}
{{ index_macros::css() }}
{% if config.extra.zulma_allow_theme_selection %}
<script type="text/javascript" src="{{ get_url(path="js/switchcss.js") }}"></script>
{% endif %}
{% if config.generate_rss %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
{% endif %}
{% block js %}
{% 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 %}
{% endblock js %}
{% block extra_head %}
{% endblock extra_head %}
@ -79,9 +76,11 @@
{% endif %}
<!-- END PAGINATION -->
</div>
{{ index_macros::footer() }}
</main>
{% endblock content %}
{% block footer %}
{{ index_macros::footer() }}
{% endblock footer %}
<script type="text/javascript" src="{{ get_url(path="js/bulma.js") }}"></script>