fix: move map_assets block to <head> so map.css registers before assets.css() renders
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
{% do assets.addCss('theme://css/style.css') %}
|
{% do assets.addCss('theme://css/style.css') %}
|
||||||
{% do assets.addCss('theme://css-compiled/main.css') %}
|
{% do assets.addCss('theme://css-compiled/main.css') %}
|
||||||
{% do assets.addJs('theme://js/main.js', {group: 'bottom'}) %}
|
{% do assets.addJs('theme://js/main.js', {group: 'bottom'}) %}
|
||||||
|
{% block map_assets %}{% endblock %}
|
||||||
{{ assets.css()|raw }}
|
{{ assets.css()|raw }}
|
||||||
{{ assets.js()|raw }}
|
{{ assets.js()|raw }}
|
||||||
</head>
|
</head>
|
||||||
@@ -25,7 +26,6 @@
|
|||||||
<main class="site-main" id="main-content">
|
<main class="site-main" id="main-content">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
{% block map_assets %}{% endblock %}
|
|
||||||
{{ assets.js('bottom')|raw }}
|
{{ assets.js('bottom')|raw }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user