From e785cf7bfe60cba0db079a6153f0150108cd14fd Mon Sep 17 00:00:00 2001 From: damonsson Date: Mon, 25 Nov 2024 01:07:38 +0100 Subject: [PATCH 1/2] accessibility fixes --- config/packages/sylius_twig_hooks.yaml | 12 +++++++++++- templates/css_override.html.twig | 2 +- templates/homepage_metatags.html.twig | 1 + templates/shop_demo_credentials.html.twig | 2 +- templates/shop_metatags.html.twig | 1 + translations/messages.en.yml | 1 + 6 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 templates/homepage_metatags.html.twig create mode 100644 templates/shop_metatags.html.twig diff --git a/config/packages/sylius_twig_hooks.yaml b/config/packages/sylius_twig_hooks.yaml index 5ec5f11d..4666a51a 100644 --- a/config/packages/sylius_twig_hooks.yaml +++ b/config/packages/sylius_twig_hooks.yaml @@ -28,9 +28,19 @@ sylius_twig_hooks: 'sylius_shop.base#stylesheets': override: template: "css_override.html.twig" - priority: 100 + priority: -10 'sylius_shop.account.login.content.login_container': analytics: template: "shop_demo_credentials.html.twig" priority: 150 + + 'sylius_shop.homepage.index#metatags': + homepage_metatags: + template: "homepage_metatags.html.twig" + priority: 150 + + 'sylius_shop.base#metatags': + homepage_metatags: + template: "shop_metatags.html.twig" + priority: 150 diff --git a/templates/css_override.html.twig b/templates/css_override.html.twig index b161d01f..df734b2e 100644 --- a/templates/css_override.html.twig +++ b/templates/css_override.html.twig @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/templates/homepage_metatags.html.twig b/templates/homepage_metatags.html.twig new file mode 100644 index 00000000..5a4b5efb --- /dev/null +++ b/templates/homepage_metatags.html.twig @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/shop_demo_credentials.html.twig b/templates/shop_demo_credentials.html.twig index 5a543750..adc95553 100644 --- a/templates/shop_demo_credentials.html.twig +++ b/templates/shop_demo_credentials.html.twig @@ -1,5 +1,5 @@