diff --git a/packages/@vuepress/plugin-blog/index.js b/packages/@vuepress/plugin-blog/index.js index 5de6bb0bd6..b2ef40f838 100644 --- a/packages/@vuepress/plugin-blog/index.js +++ b/packages/@vuepress/plugin-blog/index.js @@ -86,15 +86,15 @@ module.exports = (options, ctx) => { if (key) { if (!map[key]) { map[key] = {} - map[key].path = `/${scope}/${key}.html` + map[key].path = `${scope}${key}.html` map[key].pageKeys = [] } map[key].pageKeys.push(pageKey) } } - const handleTag = curryHandler('tag', tagMap) - const handleCategory = curryHandler('category', categoryMap) + const handleTag = curryHandler(tagIndexPageUrl, tagMap) + const handleCategory = curryHandler(categoryIndexPageUrl, categoryMap) pages.forEach(({ key,