Skip to content

Commit

Permalink
fix wrong sitemap urls (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored Jun 26, 2018
1 parent 76870c6 commit 418c840
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/server/sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 418c840

Please sign in to comment.