From 10354a0760f82496acf1a64dba9858c13d75d60b Mon Sep 17 00:00:00 2001 From: Mischa Date: Mon, 22 Jun 2026 23:39:22 +0200 Subject: [PATCH] refactor: remove CDN tags from feed-map, map, story templates - feed-map.html.twig: removed MapLibre/toGeoJSON/maplibre-utils CDN tags; added {% do assets.addCss/addJs %} calls directly in partial - map.html.twig: removed MapLibre/toGeoJSON/maplibre-utils CDN tags; added {% block map_assets %} with Asset Manager registrations - story.html.twig: removed Scrollama CDN tag (now bundled in main.js as window.scrollama) All map init and script logic remains unchanged. CDN requests eliminated. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr --- themes/intotheeast/templates/map.html.twig | 8 ++++---- themes/intotheeast/templates/partials/feed-map.html.twig | 5 ++--- themes/intotheeast/templates/story.html.twig | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/themes/intotheeast/templates/map.html.twig b/themes/intotheeast/templates/map.html.twig index 7a8a9f7..ad5475f 100644 --- a/themes/intotheeast/templates/map.html.twig +++ b/themes/intotheeast/templates/map.html.twig @@ -36,10 +36,10 @@
- - - - +{% block map_assets %} +{% do assets.addCss('theme://css-compiled/map.css') %} +{% do assets.addJs('theme://js/map.js', {group: 'bottom'}) %} +{% endblock %} -