diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 2398af8..4467fd8 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -131,6 +131,13 @@ {% for social in site.social %} {% endfor %} + + {# Leaflet map — loaded only on pages that set leafletMap: true in front matter #} + {# CSS is synchronous (Leaflet requires CSS before map init); JS is non-deferred (inline init script runs synchronously in body) #} + {% if leafletMap %} + + + {% endif %}