mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 15:29:32 +02:00
fix wrong sitemap urls (#801)
This commit is contained in:
parent
76870c6a37
commit
418c840ad4
1 changed files with 2 additions and 3 deletions
|
@ -72,9 +72,8 @@ module.exports = function(callback) {
|
||||||
MetadataBlog.map(blog => {
|
MetadataBlog.map(blog => {
|
||||||
urls.push({
|
urls.push({
|
||||||
url:
|
url:
|
||||||
'/blog/' + siteConfig.cleanUrl
|
'/blog/' +
|
||||||
? blog.path.replace(/\.html$/, '')
|
(siteConfig.cleanUrl ? blog.path.replace(/\.html$/, '') : blog.path),
|
||||||
: blog.path,
|
|
||||||
changefreq: 'weekly',
|
changefreq: 'weekly',
|
||||||
priority: 0.3,
|
priority: 0.3,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue