From 8b1f5fcf13da9c4b6723d9597971bf4149aaa417 Mon Sep 17 00:00:00 2001
From: Jim Birch <git@jimbir.ch>
Date: Fri, 10 Jan 2025 07:41:45 -0500
Subject: [PATCH 1/7] Require yoast_seo

---
 recipes/drupal_cms_seo_tools/composer.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes/drupal_cms_seo_tools/composer.json b/recipes/drupal_cms_seo_tools/composer.json
index 0213763b4..cd56e5d2a 100644
--- a/recipes/drupal_cms_seo_tools/composer.json
+++ b/recipes/drupal_cms_seo_tools/composer.json
@@ -12,7 +12,8 @@
         "drupal/seo_checklist": "^5.2.1",
         "drupal/simple_sitemap": "^4.2.2",
         "drupal/sitemap": "^2",
-        "drupal/token_or": "^2.2"
+        "drupal/token_or": "^2.2",
+        "drupal/yoast_seo": "^2.0"
     },
     "suggest": {
         "drupal/drupal_cms_analytics": "Adds recipes for tracking website traffic.",
-- 
GitLab


From 7b5ac72d963e56f6bab84b651b8a53edb19a8f3d Mon Sep 17 00:00:00 2001
From: Jim Birch <git@jimbir.ch>
Date: Fri, 10 Jan 2025 07:42:14 -0500
Subject: [PATCH 2/7] Add SEO Analysis field

---
 .../field.storage.node.field_seo_analysis.yml  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml

diff --git a/recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml b/recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml
new file mode 100644
index 000000000..8cf8d78ce
--- /dev/null
+++ b/recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml
@@ -0,0 +1,18 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - node
+    - yoast_seo
+id: node.field_seo_analysis
+field_name: field_seo_analysis
+entity_type: node
+type: yoast_seo
+settings: {  }
+module: yoast_seo
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false
-- 
GitLab


From e837c767b02bd4b620ed737a54c3dacf864306ef Mon Sep 17 00:00:00 2001
From: Jim Birch <git@jimbir.ch>
Date: Fri, 10 Jan 2025 07:42:53 -0500
Subject: [PATCH 3/7] Enable yoast_seo

---
 recipes/drupal_cms_seo_tools/recipe.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes/drupal_cms_seo_tools/recipe.yml b/recipes/drupal_cms_seo_tools/recipe.yml
index c9de02416..c4f1abc54 100644
--- a/recipes/drupal_cms_seo_tools/recipe.yml
+++ b/recipes/drupal_cms_seo_tools/recipe.yml
@@ -17,6 +17,7 @@ install:
   - simple_sitemap
   - sitemap
   - token_or
+  - yoast_seo
 config:
   # Treat all field storages strictly, since they influence the database layout.
   strict:
-- 
GitLab


From 58dddc71c8a78bbfcd93d11683b1bce83eb1d32b Mon Sep 17 00:00:00 2001
From: Jim Birch <git@jimbir.ch>
Date: Fri, 10 Jan 2025 07:43:05 -0500
Subject: [PATCH 4/7] Configure SEO analysis field

---
 recipes/drupal_cms_seo_tools/recipe.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/recipes/drupal_cms_seo_tools/recipe.yml b/recipes/drupal_cms_seo_tools/recipe.yml
index c4f1abc54..ea1af009d 100644
--- a/recipes/drupal_cms_seo_tools/recipe.yml
+++ b/recipes/drupal_cms_seo_tools/recipe.yml
@@ -21,6 +21,7 @@ install:
 config:
   # Treat all field storages strictly, since they influence the database layout.
   strict:
+    - field.storage.node.field_seo_analysis
     - field.storage.node.field_seo_description
     - field.storage.node.field_seo_image
     - field.storage.node.field_seo_title
@@ -34,6 +35,10 @@ config:
     simple_sitemap: '*'
   actions:
     # Add SEO fields to all content types that are installed.
+    field.storage.node.field_seo_analysis:
+      addToAllBundles:
+        label: 'SEO analysis'
+        description: 'Pick the main keyword this page is about.'
     field.storage.node.field_seo_description:
       addToAllBundles:
         label: 'SEO description'
@@ -64,6 +69,7 @@ config:
               - field_seo_title
               - field_seo_description
               - field_seo_image
+              - field_seo_analysis
             label: 'Search Engine Optimization (SEO) Information'
             region: content
             parent_name: ''
@@ -78,6 +84,17 @@ config:
               description: ''
               required_fields: false
       setComponents:
+        -
+          name: field_seo_analysis
+          options:
+            type: yoast_seo_widget
+            weight: 18
+            region: content
+            settings:
+              render_theme: olivero
+              render_view_mode: default
+              edit_title: 0
+              edit_description: 0
         -
           name: field_seo_description
           options:
-- 
GitLab


From 2e58fbec84bfd40247a99b5109d6090f2613d8f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ph=C3=A9na=20Proxima?= <adam@phenaproxima.net>
Date: Fri, 10 Jan 2025 08:19:51 -0500
Subject: [PATCH 5/7] Use an input for default theme

---
 recipes/drupal_cms_seo_tools/composer.json | 2 +-
 recipes/drupal_cms_seo_tools/recipe.yml    | 9 ++++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/recipes/drupal_cms_seo_tools/composer.json b/recipes/drupal_cms_seo_tools/composer.json
index cd56e5d2a..92346de81 100644
--- a/recipes/drupal_cms_seo_tools/composer.json
+++ b/recipes/drupal_cms_seo_tools/composer.json
@@ -13,7 +13,7 @@
         "drupal/simple_sitemap": "^4.2.2",
         "drupal/sitemap": "^2",
         "drupal/token_or": "^2.2",
-        "drupal/yoast_seo": "^2.0"
+        "drupal/yoast_seo": "^2"
     },
     "suggest": {
         "drupal/drupal_cms_analytics": "Adds recipes for tracking website traffic.",
diff --git a/recipes/drupal_cms_seo_tools/recipe.yml b/recipes/drupal_cms_seo_tools/recipe.yml
index ea1af009d..bbddd9748 100644
--- a/recipes/drupal_cms_seo_tools/recipe.yml
+++ b/recipes/drupal_cms_seo_tools/recipe.yml
@@ -18,6 +18,13 @@ install:
   - sitemap
   - token_or
   - yoast_seo
+input:
+  default_theme:
+    data_type: string
+    description: The default theme. Only used internally.
+    default:
+      source: config
+      config: ['system.theme', 'default']
 config:
   # Treat all field storages strictly, since they influence the database layout.
   strict:
@@ -91,7 +98,7 @@ config:
             weight: 18
             region: content
             settings:
-              render_theme: olivero
+              render_theme: ${default_theme}
               render_view_mode: default
               edit_title: 0
               edit_description: 0
-- 
GitLab


From 9ba6e9a973c012ad3709a00051a1de23b88fe822 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ph=C3=A9na=20Proxima?= <adam@phenaproxima.net>
Date: Fri, 10 Jan 2025 16:46:05 -0500
Subject: [PATCH 6/7] Add Yoast to MODULES.md

---
 MODULES.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MODULES.md b/MODULES.md
index 7d0c14d4b..3421ea62e 100644
--- a/MODULES.md
+++ b/MODULES.md
@@ -81,6 +81,7 @@
 * [Simple XML Sitemap](https://drupal.org/project/simple_sitemap)
 * [Sitemap](http://drupal.org/project/sitemap)
 * [Token Or](https://www.drupal.org/project/token_or)
+* [Real-time SEO for Drupal](http://drupal.org/project/yoast_seo)
 ## Drupal CMS
 * [Automatic Updates](https://www.drupal.org/project/automatic_updates)
 * [BPMN.iO for ECA](https://www.drupal.org/project/bpmn_io)
-- 
GitLab


From 2f3c7eeaceca8cab2f887ffb8b6d653eb531b275 Mon Sep 17 00:00:00 2001
From: Pamela Barone <31375-pameeela@users.noreply.drupalcode.org>
Date: Fri, 10 Jan 2025 22:32:47 +0000
Subject: [PATCH 7/7] Remove input and set theme to NULL

---
 recipes/drupal_cms_seo_tools/recipe.yml | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/recipes/drupal_cms_seo_tools/recipe.yml b/recipes/drupal_cms_seo_tools/recipe.yml
index bbddd9748..5512a717b 100644
--- a/recipes/drupal_cms_seo_tools/recipe.yml
+++ b/recipes/drupal_cms_seo_tools/recipe.yml
@@ -18,13 +18,6 @@ install:
   - sitemap
   - token_or
   - yoast_seo
-input:
-  default_theme:
-    data_type: string
-    description: The default theme. Only used internally.
-    default:
-      source: config
-      config: ['system.theme', 'default']
 config:
   # Treat all field storages strictly, since they influence the database layout.
   strict:
@@ -98,7 +91,7 @@ config:
             weight: 18
             region: content
             settings:
-              render_theme: ${default_theme}
+              render_theme: NULL
               render_view_mode: default
               edit_title: 0
               edit_description: 0
-- 
GitLab