Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIGITAL-118: Configure Metatags. #50

Merged
merged 26 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8b19b94
DIGITAL-118: yml files for configruration of metatags. May not need n…
cathybaptista Nov 24, 2024
eb7d290
DIGITAL-118: Some additional content changes.
cathybaptista Nov 25, 2024
9c23d1b
DIGITAL-118: Add composer and metatags.
cathybaptista Nov 25, 2024
8e0db0e
DIGITAL-118: Some additional configurations from content.
cathybaptista Nov 26, 2024
43d1029
DIGITAL-118: Change some of these configurations.
cathybaptista Nov 26, 2024
c62cd13
DIGITAL-118: change image field for this token.
cathybaptista Nov 26, 2024
8e70dd5
DIGITAL-118: core extension and lock.
cathybaptista Dec 1, 2024
2d60f8f
DIGITAL-118: No keywords in metatags.
cathybaptista Dec 1, 2024
4202635
DIGITAL-118: Fixed composer.log and just added metatag module instead…
mattsqd Dec 2, 2024
c4463cf
DIGITAL-118: Undo content changes.
mattsqd Dec 2, 2024
d1a424d
DIGITAL-118: There was a circular reference on topics. This caused th…
mattsqd Dec 2, 2024
1b9610f
DIGITAL-118: Updated article publisher tag to source.
mattsqd Dec 2, 2024
d1bd1cf
DIGITAL-118: Disabled user meta tags since user profiles will not be …
mattsqd Dec 2, 2024
c944aba
DIGITAL-118: No need to use node token on global config.
mattsqd Dec 2, 2024
d3b4cfb
DIGITAL-118: For global defaults, use site:slogan for description.
mattsqd Dec 2, 2024
3fc4307
DIGITAL-118: Allow field_summary to default to site slogan for tokens…
mattsqd Dec 2, 2024
6434640
DIGITAL-118: Enable the dg_token module.
mattsqd Dec 2, 2024
03b6300
DIGITAL-118: Set og:description for global and node.
mattsqd Dec 2, 2024
d67ba44
DIGITAL-118: Added a token for dg:og_type and an _dg_token_is_page() …
mattsqd Dec 3, 2024
2100566
DIGITAL-118: Added primary image to landing page so the default meta …
mattsqd Dec 3, 2024
96dafc9
DIGITAL-118: Use static en_US for og:locale. Added custom metatag for…
mattsqd Dec 3, 2024
e22f787
DIGITAL-118: Use and add a token for meta tag video.
mattsqd Dec 3, 2024
86cdee4
DIGITAL-118: Use the html_datetime for the published time tag.
mattsqd Dec 3, 2024
3ba26f4
DIGITAL-118: Node needed to have content moderation control enabled.
mattsqd Dec 3, 2024
c92966b
DIGITAL-118: Use site slogan for global default for twitter description.
mattsqd Dec 3, 2024
e67f877
DIGITAL-118: Added new og:meta_description token and use it in global.
mattsqd Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"drupal/maillog": "dev-1.x",
"drupal/mailsystem": "^4.4",
"drupal/memcache": "^2.5",
"drupal/metatag": "^2.1",
"drupal/multivalue_form_element": "@beta",
"drupal/override_node_options": "^2.8",
"drupal/paragraphs": "^1.18",
Expand Down
73 changes: 72 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions composer.log
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ b651cd0353960c55604adaeb24ec17b6|cathybaptista|feature/DIGITAL-95-install-breadc
e477124413638eb92702226a7d6fe68b|Matt Poole|feature/DIGITAL-95-install-breadcrumbs|Thu Nov 21 18:51:39 UTC 2024|./composer.sh update --lock
ffbb12f89e9384a89bec33f200cc95a8|Matt Poole|feature/DIGITAL-144-tome-s3|Thu Nov 21 14:05:14 EST 2024|./composer.sh require drupal/tome drupal/s3fs drupal/config_split drupal/samlauth
2ff87810c534ec1d564420c97f248217|christian medders|feature/DIGITAL-33-add-views|Tue Nov 26 14:13:17 EST 2024|./composer.sh require --dev vincentlanglet/twig-cs-fixer
2f43a74586811dd46df8d097352b31cc|cathybaptista|feature/DIGITAL-118-configure-metatags|Mon Dec 2 15:41:45 EST 2024|./composer.sh require drupal/metatag
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ dependencies:
- field.field.node.landing_page.field_buttons
- field.field.node.landing_page.field_deck
- field.field.node.landing_page.field_landing_page_type
- field.field.node.landing_page.field_primary_image
- field.field.node.landing_page.field_summary
- node.type.landing_page
- workflows.workflow.editorial
module:
- content_moderation
- link
- media_library
- path
- text
id: node.landing_page.default
Expand Down Expand Up @@ -58,6 +60,13 @@ content:
region: content
settings: { }
third_party_settings: { }
field_primary_image:
type: media_library_widget
weight: 8
region: content
settings:
media_types: { }
third_party_settings: { }
field_summary:
type: text_textfield
weight: 1
Expand Down
5 changes: 5 additions & 0 deletions config/sync/core.entity_view_display.node.event.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ content:
third_party_settings: { }
weight: 101
region: content
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
region: content
field_authors:
type: entity_reference_label
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.node.landing_page.field_buttons
- field.field.node.landing_page.field_deck
- field.field.node.landing_page.field_landing_page_type
- field.field.node.landing_page.field_primary_image
- field.field.node.landing_page.field_summary
- node.type.landing_page
module:
Expand Down Expand Up @@ -63,3 +64,4 @@ content:
region: content
hidden:
field_landing_page_type: true
field_primary_image: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.node.landing_page.field_buttons
- field.field.node.landing_page.field_deck
- field.field.node.landing_page.field_landing_page_type
- field.field.node.landing_page.field_primary_image
- field.field.node.landing_page.field_summary
- node.type.landing_page
module:
Expand Down Expand Up @@ -40,4 +41,5 @@ hidden:
field_buttons: true
field_deck: true
field_landing_page_type: true
field_primary_image: true
field_summary: true
5 changes: 5 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module:
default_content_config: 0
devel: 0
dg_breadcrumb: 0
dg_token: 0
disable_user_1_edit: 0
dynamic_page_cache: 0
easy_breadcrumb: 0
Expand All @@ -43,6 +44,10 @@ module:
memcache: 0
menu_link_content: 0
menu_ui: 0
metatag: 0
metatag_facebook: 0
metatag_open_graph: 0
metatag_twitter_cards: 0
multivalue_form_element: 0
mysql: 0
node: 0
Expand Down
29 changes: 29 additions & 0 deletions config/sync/field.field.node.landing_page.field_primary_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 2d90c376-d42d-4a67-a8e5-c98cc2a51297
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_primary_image
- media.type.image
- node.type.landing_page
id: node.landing_page.field_primary_image
field_name: field_primary_image
entity_type: node
bundle: landing_page
label: 'Primary Image'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image: image
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
29 changes: 29 additions & 0 deletions config/sync/metatag.metatag_defaults.global.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 88320e5b-f571-4be6-a888-764231253eb8
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: sL588ui1E_8-2c_UupwyYxcqX2OVyMFp3HTLbbFqvPc
id: global
label: Global
tags:
article_publisher: 'https://www.facebook.com/digitalgov'
canonical_url: '[current-page:url]'
description: '[dg:meta_description]'
fb_admins: '100000569454928'
og_description: '[dg:meta_description]'
og_image: '[dg:meta_image]'
og_image_alt: ' '
og_locale: en_US
og_site_name: '[site:name]'
og_title: '[current-page:title]'
og_type: '[dg:og_type]'
og_url: '[current-page:url]'
robots: 'index, follow'
title: '[current-page:title] | [site:name]'
twitter_cards_creator: '@Digital_gov'
twitter_cards_description: '[dg:meta_description]'
twitter_cards_image: '[dg:meta_image]'
twitter_cards_site: '@Digital_gov'
twitter_cards_title: '[current-page:title]'
twitter_cards_type: summary_large_image
11 changes: 11 additions & 0 deletions config/sync/metatag.metatag_defaults.node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: a598cf70-27a5-4c62-bf6e-5707178fe83c
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: rpwvgyEURXLz_JjgMCrkS1rUv-0k3L79BpO-ReN7fDI
id: node
label: Content
tags:
article_published_time: '[node:created:html_datetime]'
og_video: '[dg:meta_video]'
12 changes: 12 additions & 0 deletions config/sync/metatag.metatag_defaults.user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: 745ccee4-da43-4f16-82bf-373ecf5e1f8d
langcode: en
status: false
dependencies: { }
_core:
default_config_hash: MvQPTbQx0Vxwy0ordSHyixdZmLCMpvMdLD69dlwkrKc
id: user
label: User
tags:
canonical_url: '[user:url]'
description: '[site:name]'
title: '[user:display-name] | [site:name]'
9 changes: 9 additions & 0 deletions config/sync/metatag.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
_core:
default_config_hash: DrYt8PcXA0xB3C3L1SvtefnkO5SwUonhY3n4Ld8yun4
entity_type_groups: { }
separator: ''
tag_trim_method: beforeValue
use_maxlength: true
tag_trim_maxlength: { }
tag_scroll_max_height: ''
tag_trim_end: '|.,-:;/+&([{"'''
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _meta:
default_langcode: en
depends:
623a2982-602b-4762-a59e-9a7c30c64f36: node
cbcd65ff-8274-46c7-89bc-9f8c2bdaddd3: node
3c8c1a7b-5b5b-4196-b435-1fa57ff0230b: node
47d1784c-68a3-4a3b-a341-3e4f8d092253: media
default:
revision_uid:
Expand Down Expand Up @@ -66,7 +66,7 @@ default:
value: { }
field_content:
-
entity: cbcd65ff-8274-46c7-89bc-9f8c2bdaddd3
entity: 3c8c1a7b-5b5b-4196-b435-1fa57ff0230b
field_legislation:
-
uri: 'https://www.fpc.gov/resources/omb/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _meta:
default_langcode: en
depends:
623a2982-602b-4762-a59e-9a7c30c64f36: node
3c8c1a7b-5b5b-4196-b435-1fa57ff0230b: node
cbcd65ff-8274-46c7-89bc-9f8c2bdaddd3: node
default:
revision_uid:
-
Expand Down Expand Up @@ -37,11 +37,6 @@ default:
alias: /topics/accessibility
langcode: en
pathauto: 0
body:
-
value: '<p><a href="/node/19" data-entity-type="node" data-entity-uuid="7086f5d5-7c6f-41ef-8a60-70cd267a9860" data-entity-substitution="canonical">RESOURCES</a>&nbsp;</p>'
format: html
summary: ''
field_deck:
-
value: 'The design of products, devices, services, or environments for people with disabilities'
Expand Down Expand Up @@ -255,7 +250,7 @@ default:
value: { }
field_content:
-
entity: 3c8c1a7b-5b5b-4196-b435-1fa57ff0230b
entity: cbcd65ff-8274-46c7-89bc-9f8c2bdaddd3
field_legislation:
-
uri: 'https://www.section508.gov/manage/laws-and-policies/'
Expand Down
7 changes: 7 additions & 0 deletions web/modules/custom/dg_token/dg_token.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'Digital.gov Token'
type: module
description: 'Alters token functionality.'
package: Custom
core_version_requirement: ^10 || ^11
dependencies:
- token:token
Loading
Loading