feat!: remove the PHP-parity sitemap, tiers, definitions screen and XSL
BREAKING CHANGE: /sitemap.xsl is gone (404), the definitions screen and the Phase 17 settings tile are replaced by the settings singleton, and priority, change frequency, priority tiers and the update manifest are no longer written or read. The config keys golem15.sitemap.cache_seconds and golem15.sitemap.priority_tiers are removed; site_url, lastmod_ignore and rebuild_delay_seconds are new. - sitemap:import and sitemap:import-winter write the additional addresses (and site_url, default_locale) instead of the definition - the golem15_sitemap_definitions table stays in the database, unread
This commit is contained in:
@@ -1,44 +1,20 @@
|
||||
# golem15.sitemap defaults, read as golem15.sitemap.<key>.
|
||||
#
|
||||
# cache_seconds is how long a generated /sitemap.xml is served from memory.
|
||||
# A save of the definition or the settings shows at once; registry content
|
||||
# (a new or changed post) shows once the entry expires. 0 turns the cache
|
||||
# off.
|
||||
cache_seconds: 60
|
||||
# site_url is the public site address every <loc> of the sitemaps starts
|
||||
# with when the Site address setting is empty; without both, app.url is
|
||||
# used. The request's Host is never used. Set it per environment, e.g.:
|
||||
#
|
||||
# The priority tier rules assign a URL the value of one of the five
|
||||
# priority settings when Enable priority tiers is on. A URL's path, without
|
||||
# trailing slashes ("" for the homepage), is matched against the rules in
|
||||
# order and the first match wins; a URL no rule matches keeps its item's
|
||||
# priority. Each rule names a setting (priority_homepage, priority_services,
|
||||
# priority_blog, priority_categories or priority_legal) and either exact
|
||||
# (a list of paths) or pattern (a regular expression in RE2 syntax, checked
|
||||
# at boot).
|
||||
# site_url: https://www.example.com
|
||||
#
|
||||
# The defaults below are the rules the WinterCMS plugin had in code
|
||||
# (getPriorityForUrl), so a site configured the same way produces the same
|
||||
# priorities. A host replaces the whole list in its own config, for example
|
||||
# in config/golem15.yaml under the same key below sitemap:.
|
||||
priority_tiers:
|
||||
- setting: priority_homepage
|
||||
exact: ["", "/en"]
|
||||
- setting: priority_services
|
||||
pattern: '^/(uslugi|en/services|realizacje|en/work)/[^/]+$'
|
||||
- setting: priority_blog
|
||||
pattern: '^/(blog|en/blog)/[^/]+/[^/]+$'
|
||||
- setting: priority_categories
|
||||
pattern: '^/(uslugi|en/services|realizacje|en/work|blog|en/blog)(/[^/]+)?$'
|
||||
- setting: priority_legal
|
||||
exact:
|
||||
- /polityka-prywatnosci
|
||||
- /en/privacy-policy
|
||||
- /regulamin
|
||||
- /en/terms
|
||||
- /o-nas
|
||||
- /en/about
|
||||
- /kontakt
|
||||
- /en/contact
|
||||
- /laboratorium-ai
|
||||
- /en/ai-lab
|
||||
- /laboratorium-ai/zabawa-animacja
|
||||
- /en/ai-lab/blob-playground
|
||||
# lastmod_ignore lists the record attributes whose change does not move an
|
||||
# address's lastmod: a save that changes only these (or nothing) leaves it
|
||||
# as it was. A host replaces the whole list in its own config.
|
||||
lastmod_ignore:
|
||||
- updated_at
|
||||
- created_at
|
||||
- views
|
||||
- sort_order
|
||||
#
|
||||
# rebuild_delay_seconds is how long after a record change the queued
|
||||
# rebuild runs; further changes in that time join the same rebuild.
|
||||
rebuild_delay_seconds: 60
|
||||
|
||||
Reference in New Issue
Block a user