Skip to content

Commit

Permalink
Merge pull request #91 from estebancastro/patch-1
Browse files Browse the repository at this point in the history
Update global-variables.twig
  • Loading branch information
khalwat committed Jun 27, 2024
2 parents c0ae345 + 0a2c590 commit 47a9005
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions cms/templates/_layouts/global-variables.twig
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 47a9005

Please sign in to comment.