From 81065cb8ade3e46c5225d523cd84642b6ba3a8ae Mon Sep 17 00:00:00 2001 From: Michael Van Dorth Date: Mon, 16 Sep 2024 17:56:59 +0200 Subject: [PATCH 1/2] Disable SEOMatic meta tag rendering in layouts --- src/templates/_layouts/default.twig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/templates/_layouts/default.twig b/src/templates/_layouts/default.twig index c15c70b..ac21e7a 100644 --- a/src/templates/_layouts/default.twig +++ b/src/templates/_layouts/default.twig @@ -6,6 +6,11 @@ + {% if seomatic|default %} + {# {% do seomatic.meta.setAttributes({ robots: 'noindex, nofollow' }) %} #} + {% do seomatic.config.renderEnabled(false) %} + {% endif %} + {% block head %} {{ craft.checkout.branding.title ? craft.checkout.branding.title : siteName }} From f35bc0e0ee63f7323127caebf1e39de04944971f Mon Sep 17 00:00:00 2001 From: Michael Van Dorth <michael@fostercommerce.com> Date: Mon, 16 Sep 2024 18:02:53 +0200 Subject: [PATCH 2/2] Code cleanup and title cleanup --- src/templates/_layouts/default.twig | 1 - src/templates/checkout/address.twig | 3 +-- src/templates/checkout/email.twig | 3 +-- src/templates/checkout/order.twig | 3 +-- src/templates/checkout/payment.twig | 3 +-- src/templates/checkout/shipping.twig | 3 +-- 6 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/templates/_layouts/default.twig b/src/templates/_layouts/default.twig index ac21e7a..1c6893f 100644 --- a/src/templates/_layouts/default.twig +++ b/src/templates/_layouts/default.twig @@ -7,7 +7,6 @@ <meta name="robots" content="noindex, nofollow" /> {% if seomatic|default %} - {# {% do seomatic.meta.setAttributes({ robots: 'noindex, nofollow' }) %} #} {% do seomatic.config.renderEnabled(false) %} {% endif %} diff --git a/src/templates/checkout/address.twig b/src/templates/checkout/address.twig index 64330e1..18b1d11 100644 --- a/src/templates/checkout/address.twig +++ b/src/templates/checkout/address.twig @@ -6,8 +6,7 @@ {% block head %} <title> {{ craft.checkout.branding.title ? craft.checkout.branding.title : siteName }} | - {{ 'Checkout'|t('foster-checkout') }} | - {{ 'Address'|t('foster-checkout') }} + {{ 'Checkout'|t('foster-checkout') }} : {{ 'Address'|t('foster-checkout') }} {% endblock %} diff --git a/src/templates/checkout/email.twig b/src/templates/checkout/email.twig index e61de52..1df9f29 100644 --- a/src/templates/checkout/email.twig +++ b/src/templates/checkout/email.twig @@ -3,8 +3,7 @@ {% block head %} {{ craft.checkout.branding.title ? craft.checkout.branding.title : siteName }} | - {{ 'Checkout'|t('foster-checkout') }} | - {{ 'Email'|t('foster-checkout') }} + {{ 'Checkout'|t('foster-checkout') }} : {{ 'Email'|t('foster-checkout') }} {% endblock %} diff --git a/src/templates/checkout/order.twig b/src/templates/checkout/order.twig index 25b8949..1bacc35 100644 --- a/src/templates/checkout/order.twig +++ b/src/templates/checkout/order.twig @@ -7,8 +7,7 @@ {% block head %} {{ craft.checkout.branding.title ? craft.checkout.branding.title : siteName }} | - {{ 'Checkout'|t('foster-checkout') }} | - {{ 'Order'|t('foster-checkout') }} + {{ 'Checkout'|t('foster-checkout') }} : {{ 'Order'|t('foster-checkout') }} {% endblock %} diff --git a/src/templates/checkout/payment.twig b/src/templates/checkout/payment.twig index 0b7de96..0819e8d 100644 --- a/src/templates/checkout/payment.twig +++ b/src/templates/checkout/payment.twig @@ -3,8 +3,7 @@ {% block head %} {{ craft.checkout.branding.title ? craft.checkout.branding.title : siteName }} | - {{ 'Checkout'|t('foster-checkout') }} | - {{ 'Payment'|t('foster-checkout') }} + {{ 'Checkout'|t('foster-checkout') }} : {{ 'Payment'|t('foster-checkout') }} {% endblock %} diff --git a/src/templates/checkout/shipping.twig b/src/templates/checkout/shipping.twig index 2b1b533..32f1125 100644 --- a/src/templates/checkout/shipping.twig +++ b/src/templates/checkout/shipping.twig @@ -3,8 +3,7 @@ {% block head %} {{ craft.checkout.branding.title ? craft.checkout.branding.title : siteName }} | - {{ 'Checkout'|t('foster-checkout') }} | - {{ 'Shipping'|t('foster-checkout') }} + {{ 'Checkout'|t('foster-checkout') }} : {{ 'Shipping'|t('foster-checkout') }} {% endblock %}