Skip to content

Commit

Permalink
IN-311 Verify sitemap config
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Dec 29, 2023
1 parent 61e48d6 commit b09cde2
Show file tree
Hide file tree
Showing 13 changed files with 128 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
"drupal/samlauth": "^3",
"drupal/search_api": "^1",
"drupal/search_api_solr": "^4",
"drupal/simple_sitemap": "4.1.8",
"drupal/token": "^1",
"drupal/twig_field_value": "^2",
"drupal/twig_tweak": "^3",
Expand Down
2 changes: 2 additions & 0 deletions configuration/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module:
search: 0
search_api: 0
search_api_solr: 0
simple_sitemap: 0
simple_sitemap_views: 0
sophron: 0
system: 0
taxonomy: 0
Expand Down
7 changes: 7 additions & 0 deletions configuration/simple_sitemap.custom_links.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_core:
default_config_hash: 25hWeYa4sasuJtHqKKcEN_nYiuEC1lMPYHsn5dawJEw
links:
-
path: /
priority: '1.0'
changefreq: daily
20 changes: 20 additions & 0 deletions configuration/simple_sitemap.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
_core:
default_config_hash: MUpaAk1hn-0Ph4OFw3DD_6gUF9KbGwxja9Y0qmampzo
max_links: 2000
cron_generate: true
cron_generate_interval: 0
generate_duration: 10000
entities_per_queue_item: 50
remove_duplicates: true
skip_untranslated: true
xsl: true
base_url: ''
default_variant: default
custom_links_include_images: false
disable_language_hreflang: false
hide_branding: false
excluded_languages: { }
enabled_entity_types:
- node
- taxonomy_term
- menu_link_content
13 changes: 13 additions & 0 deletions configuration/simple_sitemap.sitemap.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 15b1a57a-ce02-4651-af8e-65ea5cda5dc3
langcode: en
status: true
dependencies:
config:
- simple_sitemap.type.default_hreflang
_core:
default_config_hash: zHW-ZT11Lkf2zSRgisGKjgU7TzrNcT8_MwFeuVtl8O8
id: default
label: Default
description: 'The default hreflang sitemap - lists URLs to be indexed by modern search engines.'
type: default_hreflang
weight: 0
13 changes: 13 additions & 0 deletions configuration/simple_sitemap.sitemap.index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 3a63bca9-e171-44d5-8897-2e36c9c98828
langcode: en
status: true
dependencies:
config:
- simple_sitemap.type.index
_core:
default_config_hash: aJs7eKxEbjBloVrp0IuxQbeq25CNH0r9AhSS29kHFMw
id: index
label: 'Sitemap Index'
description: 'The sitemap index listing all other sitemaps - useful if there are at least two other sitemaps. In most cases this sitemap should be last in the generation queue and set as the default sitemap.'
type: index
weight: 1000
11 changes: 11 additions & 0 deletions configuration/simple_sitemap.sitemap.views-sitemap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: 8ce4dedb-529a-4a53-8eb8-cbc87666c0d0
langcode: en
status: true
dependencies:
config:
- simple_sitemap.type.sitemap_viewa
id: views-sitemap
label: 'Views Sitemap'
description: ''
type: sitemap_viewa
weight: 0
15 changes: 15 additions & 0 deletions configuration/simple_sitemap.type.default_hreflang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: 9d20211a-7a46-4388-ba48-f90153d8938c
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: pYORFuFzL0b2FKevz6fSag1wOUNTthFPPLxZ18JB1t0
id: default_hreflang
label: 'Default hreflang'
description: 'The default hreflang sitemap type. A sitemap of this type is understood by most modern search engines.'
sitemap_generator: default
url_generators:
- custom
- entity
- entity_menu_link_content
- arbitrary
12 changes: 12 additions & 0 deletions configuration/simple_sitemap.type.index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: a4034dcc-290f-44eb-a0fc-116fe98bd5b1
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: pbgJrin6L7zsVEKS8oEDCYJPCzgu765iTGQh2GPX1no
id: index
label: 'Sitemap Index'
description: 'The sitemap index sitemap type. A sitemap of this type lists sitemaps of all other types.'
sitemap_generator: index
url_generators:
- index
10 changes: 10 additions & 0 deletions configuration/simple_sitemap.type.sitemap_viewa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: f2d99b62-d07a-401a-b31a-626f3c962c28
langcode: en
status: true
dependencies: { }
id: sitemap_viewa
label: 'Sitemap Views'
description: ''
sitemap_generator: default
url_generators:
views: views
3 changes: 2 additions & 1 deletion configuration/views.settings.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_core:
default_config_hash: RaRd9EIcwA4u3qCSRLL8EnCicbda1kV__ASmVbyehvQ
display_extenders: { }
display_extenders:
simple_sitemap_display_extender: simple_sitemap_display_extender
skip_cache: false
sql_signature: false
ui:
Expand Down
12 changes: 11 additions & 1 deletion configuration/views.view.browse_composites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ display:
- 'config:field.storage.node.field_subjects'
- 'config:field.storage.node.field_type'
- 'config:search_api.index.images_composites_lib_unb_ca'
- 'search_api_list:images_composites_lib_unb_ca'
page_1:
id: page_1
display_title: Page
Expand All @@ -867,7 +868,15 @@ display:
type: none
defaults:
cache: false
display_extenders: { }
display_extenders:
simple_sitemap_display_extender:
variants:
views-sitemap:
index: true
priority: '0.5'
changefreq: ''
arguments: { }
max_links: 100
path: browse-composites
cache_metadata:
max-age: -1
Expand All @@ -882,3 +891,4 @@ display:
- 'config:field.storage.node.field_subjects'
- 'config:field.storage.node.field_type'
- 'config:search_api.index.images_composites_lib_unb_ca'
- 'search_api_list:images_composites_lib_unb_ca'
12 changes: 11 additions & 1 deletion configuration/views.view.browse_subjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ display:
- 'config:field.storage.node.field_comp_year'
- 'config:field.storage.node.field_type'
- 'config:search_api.index.people_composites_lib_unb_ca'
- 'search_api_list:people_composites_lib_unb_ca'
page_1:
id: page_1
display_title: Page
Expand All @@ -503,7 +504,15 @@ display:
type: none
defaults:
cache: false
display_extenders: { }
display_extenders:
simple_sitemap_display_extender:
variants:
views-sitemap:
index: true
priority: '0.5'
changefreq: ''
arguments: { }
max_links: 100
path: browse-persons
cache_metadata:
max-age: -1
Expand All @@ -516,3 +525,4 @@ display:
- 'config:field.storage.node.field_comp_year'
- 'config:field.storage.node.field_type'
- 'config:search_api.index.people_composites_lib_unb_ca'
- 'search_api_list:people_composites_lib_unb_ca'

0 comments on commit b09cde2

Please sign in to comment.