fix wrong sitemap urls (#801)

This commit is contained in:
Endilie Yacop Sucipto 2018-06-26 13:02:46 +07:00 committed by GitHub
parent 76870c6a37
commit 418c840ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}); });