From 4ef5e48d1ccf8468c075a8f9c800472d497a9039 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Thu, 23 Jan 2020 22:33:21 +1030 Subject: [PATCH] SEO enhancements + structured data --- config/baseSchema.json | 10 ++++++++++ config/settings.json | 2 ++ views/layouts/layout.hbs | 36 ++++++++++++++++++++++++++++++++++-- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/config/baseSchema.json b/config/baseSchema.json index 5933f92..442dc92 100644 --- a/config/baseSchema.json +++ b/config/baseSchema.json @@ -71,6 +71,10 @@ "type": "string", "default": "£" }, + "currencyISO": { + "type": "string", + "default": "USD" + }, "paymentGateway": { "type": "string", "enum": ["paypal", "stripe", "authorizenet", "adyen", "instore"] @@ -113,6 +117,12 @@ "maxQuantity": { "type": "number" }, + "twitterHandle": { + "type": "string" + }, + "facebookAppId": { + "type": "string" + }, "modules": { "type": "object", "properties": { diff --git a/config/settings.json b/config/settings.json index 7f6e6f8..34fd484 100644 --- a/config/settings.json +++ b/config/settings.json @@ -26,6 +26,8 @@ "availableLanguages": ["en", "it"], "defaultLocale": "en", "maxQuantity": 25, + "twitterHandle": "", + "facebookAppId": "", "modules": { "enabled": { "shipping": "shipping-basic", diff --git a/views/layouts/layout.hbs b/views/layouts/layout.hbs index 3fc830e..5460b5b 100644 --- a/views/layouts/layout.hbs +++ b/views/layouts/layout.hbs @@ -65,6 +65,9 @@ {{/if}} + {{#if @root.config.facebookAppId}} + + {{/if}} {{#if result.productTitle}} @@ -89,6 +92,9 @@ {{/if}} {{/if}} + {{#if @root.config.twitterHandle}} + + {{/if}} {{#if result.productTitle}} {{else}} @@ -102,12 +108,38 @@ {{/if}} + {{~#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}} {{~#if config.customCss}}{{/if}}