diff --git a/cms/templates/_layouts/global-variables.twig b/cms/templates/_layouts/global-variables.twig index e1eb315..938fcb0 100644 --- a/cms/templates/_layouts/global-variables.twig +++ b/cms/templates/_layouts/global-variables.twig @@ -1,23 +1,26 @@ -{% spaceless %}{# -- Root global variables that all templates inherit from -- #} - {# -- This allows for defining site-wide Twig variables as needed -- #} - {# - ┌─────────────────────────────────────────────────────────────────────────────┐ - │ │ - │ │ - │ │ - │ htmlPage │ - └─────────────────────────────────────────────────────────────────────────────┘ - #} - +{# -- Root global variables that all templates inherit from -- #} +{# -- This allows for defining site-wide Twig variables as needed -- #} +{# +┌─────────────────────────────────────────────────────────────────────────────┐ +│ │ +│ │ +│ │ +│ htmlPage │ +└─────────────────────────────────────────────────────────────────────────────┘ +#} +{% apply spaceless %} {# -- Prefetch & preconnect headers and links -- #} {% set prefetchUrls = [ alias("@assetsUrl"), ] %} + {# -- General global variables -- #} {% set baseUrl = alias('@assetsUrl') ~ '/' %} {% set gaTrackingId = getenv('GA_TRACKING_ID') %} {# -- Twig output from the render; this must be in a block -- #} -{% endspaceless %}{% block htmlPage %} -{% endblock %} + {% block htmlPage %} + {% endblock %} + +{% endapply %}