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 => {
urls.push({
url:
'/blog/' + siteConfig.cleanUrl
? blog.path.replace(/\.html$/, '')
: blog.path,
'/blog/' +
(siteConfig.cleanUrl ? blog.path.replace(/\.html$/, '') : blog.path),
changefreq: 'weekly',
priority: 0.3,
});