diff --git a/apps/web-twig-demo/templates/layout/base.html.twig b/apps/web-twig-demo/templates/layout/base.html.twig index 0aeea3ac1a..cbd428e590 100644 --- a/apps/web-twig-demo/templates/layout/base.html.twig +++ b/apps/web-twig-demo/templates/layout/base.html.twig @@ -21,11 +21,40 @@ {# As we also use this demo for visual testing we need to block render until the font is loaded. #} + + {% set themes = [ + { + id: 'light-default', + name: 'Light default', + }, + { + id: 'light-on-brand', + name: 'Light on brand', + }, + ] %} + + {{ encore_entry_link_tags('app') }} {{ encore_entry_script_tags('app') }} -
+ {% block body %}{% endblock %} diff --git a/apps/web-twig-demo/templates/layout/default.html.twig b/apps/web-twig-demo/templates/layout/default.html.twig index 787c85564e..90630d90a4 100644 --- a/apps/web-twig-demo/templates/layout/default.html.twig +++ b/apps/web-twig-demo/templates/layout/default.html.twig @@ -20,7 +20,7 @@ {%- endset %} {% block header %} - {% include 'partials/header.html.twig' %} + {% include 'partials/header.html.twig' with { themes } only %} {% include 'partials/cover.html.twig' with { isUnstable, parentPageName, parentPageUrl, title } only %} {% endblock %} diff --git a/apps/web-twig-demo/templates/partials/header.html.twig b/apps/web-twig-demo/templates/partials/header.html.twig index b8279bfa87..7eb20f9188 100644 --- a/apps/web-twig-demo/templates/partials/header.html.twig +++ b/apps/web-twig-demo/templates/partials/header.html.twig @@ -23,6 +23,10 @@ +