{# The embedded map, provider decided by configuration. google: a keyless place-search embed, the same one the classic WordPress sites use. openstreetmap: a keyless marker embed by coordinates. Both are plain iframes, so the page stays static and no script runs until the reader scrolls the frame into view (lazy loading). #} {% set provider = config.get('MAP_PROVIDER', 'google') %}
{% if provider == 'openstreetmap' and config.get('MAP_LAT') and config.get('MAP_LNG') %} {% set lat = config.get('MAP_LAT') %}{% set lng = config.get('MAP_LNG') %} {% else %} {% endif %} {% if config.get('MAP_ADDRESS') %}

{{ config.get('MAP_ADDRESS') }}

{% endif %}