Skip to content

Commit

Permalink
IN-311 Add simple_sitemap configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Jan 3, 2024
1 parent 16d99e0 commit 7dbc51f
Show file tree
Hide file tree
Showing 14 changed files with 129 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 @@ -72,6 +72,7 @@
"drupal/health_check": "1.3",
"drupal/redis": "1.6",
"drupal/token": "1.11",
"drupal/simple_sitemap": "4.1.6",
"technosophos/libris": "~2.0",
"unb-libraries/drupal-builder": "^9"
},
Expand Down
5 changes: 5 additions & 0 deletions config-yml/core.entity_form_display.user.user.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ content:
contact:
weight: 5
region: content
google_analytics:
weight: 3
region: content
settings: { }
third_party_settings: { }
language:
weight: 0
region: content
Expand Down
2 changes: 2 additions & 0 deletions config-yml/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ module:
redis: 0
search: 0
serialization: 0
simple_sitemap: 0
simple_sitemap_views: 0
system: 0
taxonomy: 0
text: 0
Expand Down
7 changes: 7 additions & 0 deletions config-yml/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 config-yml/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 config-yml/simple_sitemap.sitemap.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 1f55747b-1550-4c3c-97f9-ba0cce59143d
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 config-yml/simple_sitemap.sitemap.index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 9cb86816-f1ed-4f9c-aee6-5f83e36478f3
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 config-yml/simple_sitemap.sitemap.views-sitemap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: 354726dd-5396-4ce9-bbaa-cc2047072524
langcode: en
status: true
dependencies:
config:
- simple_sitemap.type.views_sitemap
id: views-sitemap
label: 'Views Sitemap'
description: ''
type: views_sitemap
weight: 0
15 changes: 15 additions & 0 deletions config-yml/simple_sitemap.type.default_hreflang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: e9d549c0-7652-48a0-8ec8-9af4c3f0bad0
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 config-yml/simple_sitemap.type.index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: c8dffbe3-7bb1-4636-a1ce-e3da73836185
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 config-yml/simple_sitemap.type.views_sitemap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 0f945407-3f50-4f90-a35c-2fa72f901837
langcode: en
status: true
dependencies: { }
id: views_sitemap
label: 'Views Sitemap'
description: ''
sitemap_generator: index
url_generators:
views: views
3 changes: 2 additions & 1 deletion config-yml/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
10 changes: 9 additions & 1 deletion config-yml/views.view.ns_references.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,15 @@ display:
filter_groups: false
display_description: ''
exposed_block: true
display_extenders: { }
display_extenders:
simple_sitemap_display_extender:
variants:
views-sitemap:
index: true
priority: '0.5'
changefreq: ''
arguments: { }
max_links: 100
path: references
cache_metadata:
max-age: -1
Expand Down
10 changes: 9 additions & 1 deletion config-yml/views.view.ns_subjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,15 @@ display:
display_plugin: page
position: 1
display_options:
display_extenders: { }
display_extenders:
simple_sitemap_display_extender:
variants:
views-sitemap:
index: true
priority: '0.5'
changefreq: ''
arguments: { }
max_links: 100
path: subjects
cache_metadata:
max-age: -1
Expand Down

0 comments on commit 7dbc51f

Please sign in to comment.