fix(sitemap): remove index.html from url

a92dbbb83c
3fccc82d3a
This commit is contained in:
curben 2019-05-30 19:18:11 +09:30
parent 4a785a6cf1
commit 0fe5658173
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ module.exports = function (locals) {
.sort((a, b) => {
return b.updated - a.updated
})
.map((post) => ({
...post,
permalink: post.permalink.replace('index.html', '')
}))
// configuration dictionary
const xmlConfig = {