手册:$wgSitemapNamespaces
Appearance
搜索: $wgSitemapNamespaces | |
---|---|
Array of namespaces identified by their IDs to generate a sitemap or false for all namespaces. |
|
引进版本: | 1.13.0 |
移除版本: | 仍在使用 |
允许的值: | (数组)或false |
默认值: | false |
其他设置: 按首字母排序 | 按功能排序 |
详情
Array of namespace IDs to generate a sitemap for when the maintenance/generateSitemap.php script is run, or false if one is to be generated for all namespaces.
示例
$wgSitemapNamespaces = [
0,
2,
4,
12
];
Now only sitemap files for the main (0), user (2), project (4) and help (12) namespace will be generated and thus included into the sitemap.
参见
- $wgSitemapNamespacesPriorities - Custom namespace priorities for sitemaps.