- generator in Definition::addItemToSet order: 50000 URL cap, lastmod from the record or the updates manifest (regular file, 5 MiB cap, fail safe), BeforeAddItem (skip) and AddItem (extra XML) festival events, tier or item priority, per-alternate expansion of list type children - priority tiers from golem15.sitemap.priority_tiers, compiled at boot, defaults equal to the PHP getPriorityForUrl rules - frontend_url rewrite of loc, xhtml:link href and the stylesheet href; GET /sitemap.xsl serves the PHP stylesheet byte for byte - golem15_sitemap_settings singleton and Settings model - sitemap:import (PHP ImportCommand) and sitemap:import-winter with the read-only Winter export SQL - urlto and full goldens generated from PHP; TestSitemapImportSmoke
39 lines
1.5 KiB
YAML
39 lines
1.5 KiB
YAML
# golem15.sitemap defaults, read as golem15.sitemap.<key>.
|
|
#
|
|
# 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).
|
|
#
|
|
# 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
|