From e6e1258829b829fe21861e3a92a2c1b7d70ba18d Mon Sep 17 00:00:00 2001 From: Clayton Dewey Date: Fri, 18 Jan 2019 15:56:26 -0700 Subject: [PATCH] Enable OpenGraph module and configure sensible defaults for OpenGraph metatag --- ...shot.config_sync.module.metatag_facebook.yml | 11 +++++++++++ ...ot.config_sync.module.metatag_open_graph.yml | 11 +++++++++++ ...config_sync.module.metatag_twitter_cards.yml | 11 +++++++++++ config/sync/core.extension.yml | 3 +++ config/sync/metatag.metatag_defaults.front.yml | 17 ++++++++++++++++- config/sync/metatag.metatag_defaults.global.yml | 4 +++- config/sync/metatag.metatag_defaults.node.yml | 11 ++++++++++- .../metatag.metatag_defaults.taxonomy_term.yml | 7 ++++++- 8 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 config/sync/config_snapshot.snapshot.config_sync.module.metatag_facebook.yml create mode 100644 config/sync/config_snapshot.snapshot.config_sync.module.metatag_open_graph.yml create mode 100644 config/sync/config_snapshot.snapshot.config_sync.module.metatag_twitter_cards.yml diff --git a/config/sync/config_snapshot.snapshot.config_sync.module.metatag_facebook.yml b/config/sync/config_snapshot.snapshot.config_sync.module.metatag_facebook.yml new file mode 100644 index 0000000..b5bae05 --- /dev/null +++ b/config/sync/config_snapshot.snapshot.config_sync.module.metatag_facebook.yml @@ -0,0 +1,11 @@ +uuid: 45874301-cb0c-498e-930f-360175ab0413 +langcode: en +status: true +dependencies: + module: + - metatag_facebook +id: config_sync.module.metatag_facebook +snapshotSet: config_sync +extensionType: module +extensionName: metatag_facebook +items: { } diff --git a/config/sync/config_snapshot.snapshot.config_sync.module.metatag_open_graph.yml b/config/sync/config_snapshot.snapshot.config_sync.module.metatag_open_graph.yml new file mode 100644 index 0000000..e0d3caa --- /dev/null +++ b/config/sync/config_snapshot.snapshot.config_sync.module.metatag_open_graph.yml @@ -0,0 +1,11 @@ +uuid: c5e34b17-d6b7-4e40-93c2-4659bc776095 +langcode: en +status: true +dependencies: + module: + - metatag_open_graph +id: config_sync.module.metatag_open_graph +snapshotSet: config_sync +extensionType: module +extensionName: metatag_open_graph +items: { } diff --git a/config/sync/config_snapshot.snapshot.config_sync.module.metatag_twitter_cards.yml b/config/sync/config_snapshot.snapshot.config_sync.module.metatag_twitter_cards.yml new file mode 100644 index 0000000..b1dc231 --- /dev/null +++ b/config/sync/config_snapshot.snapshot.config_sync.module.metatag_twitter_cards.yml @@ -0,0 +1,11 @@ +uuid: c4469afe-36e6-496c-93f2-e6972d51de13 +langcode: en +status: true +dependencies: + module: + - metatag_twitter_cards +id: config_sync.module.metatag_twitter_cards +snapshotSet: config_sync +extensionType: module +extensionName: metatag_twitter_cards +items: { } diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 26bb499..25dd916 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -95,6 +95,9 @@ module: menu_trail_by_path: 0 menu_ui: 0 metatag: 0 + metatag_facebook: 0 + metatag_open_graph: 0 + metatag_twitter_cards: 0 migrate: 0 migrate_drupal: 0 migrate_plus: 0 diff --git a/config/sync/metatag.metatag_defaults.front.yml b/config/sync/metatag.metatag_defaults.front.yml index 94bd95a..e699c0f 100644 --- a/config/sync/metatag.metatag_defaults.front.yml +++ b/config/sync/metatag.metatag_defaults.front.yml @@ -7,5 +7,20 @@ _core: id: front label: 'Front page' tags: - canonical_url: '[site:url]' shortlink: '[site:url]' + canonical_url: '[site:url]' + image_src: 'https://agaric.coop/sites/default/files/inline-images/agaric-975x400-v1.png' + og_locality: Boston + og_image: 'https://agaric.coop/sites/default/files/inline-images/agaric-975x400-v1.png' + og_region: Massachusetts + og_image_alt: 'The Agaric logo and name with smaller web-related icons surrounding it.' + og_postal_code: '02134' + og_description: 'A tech cooperative building websites and online tools that respect your freedom.' + og_email: ask@agaric.coop + og_phone_number: '(508) 283-3557' + twitter_cards_image: 'https://agaric.coop/sites/default/files/inline-images/agaric-square.png' + twitter_cards_site: '@agaric' + twitter_cards_description: 'A tech cooperative building websites and online tools that respect your freedom.' + twitter_cards_image_alt: 'The Agaric logo.' + twitter_cards_type: summary + twitter_cards_title: Agaric diff --git a/config/sync/metatag.metatag_defaults.global.yml b/config/sync/metatag.metatag_defaults.global.yml index 83c91a9..7cda3d2 100644 --- a/config/sync/metatag.metatag_defaults.global.yml +++ b/config/sync/metatag.metatag_defaults.global.yml @@ -7,5 +7,7 @@ _core: id: global label: Global tags: - canonical_url: '[current-page:url]' title: '[current-page:title] | [site:name]' + canonical_url: '[current-page:url]' + og_site_name: Agaric + og_title: '[current-page:title] | [site:name]' diff --git a/config/sync/metatag.metatag_defaults.node.yml b/config/sync/metatag.metatag_defaults.node.yml index 24e22d0..797e21d 100644 --- a/config/sync/metatag.metatag_defaults.node.yml +++ b/config/sync/metatag.metatag_defaults.node.yml @@ -8,5 +8,14 @@ id: node label: Content tags: title: '[node:title] | [site:name]' - description: '[node:summary]' canonical_url: '[node:url]' + description: '[node:summary]' + image_src: '[node:field_image]' + og_image: '[node:field_image]' + og_image_alt: '[node:field_image:alt]' + og_description: '[node:summary]' + og_site_name: Agaric + og_title: '[node:title] | [site:name]' + twitter_cards_image: '[node:field_image]' + twitter_cards_image_alt: '[node:field_image:alt]' + twitter_cards_type: summary diff --git a/config/sync/metatag.metatag_defaults.taxonomy_term.yml b/config/sync/metatag.metatag_defaults.taxonomy_term.yml index 899563a..4704fe9 100644 --- a/config/sync/metatag.metatag_defaults.taxonomy_term.yml +++ b/config/sync/metatag.metatag_defaults.taxonomy_term.yml @@ -7,6 +7,11 @@ _core: id: taxonomy_term label: 'Taxonomy term' tags: + title: '[term:name] | [site:name]' canonical_url: '[term:url]' description: '[term:description]' - title: '[term:name] | [site:name]' + og_description: '[term:description]' + og_title: '[term:name] | [site:name]' + twitter_cards_description: '[term:description]' + twitter_cards_type: summary + twitter_cards_title: '[term:name] | [site:name]'