@vuepress/plugin-blog
Advanced tools
Comparing version 1.0.0-alpha.20 to 1.0.0-alpha.21
@@ -7,4 +7,6 @@ const { path, datatypes: { isString }} = require('@vuepress/shared-utils') | ||
pageEnhancers = [], | ||
postsDir = '_posts', | ||
categoryIndexPageUrl = '/category/', | ||
tagIndexPageUrl = '/tag/' | ||
tagIndexPageUrl = '/tag/', | ||
permalink = '/:year/:month/:day/:slug' | ||
} = options | ||
@@ -43,6 +45,6 @@ | ||
{ | ||
when: ({ regularPath }) => regularPath.startsWith('/_posts/'), | ||
when: ({ regularPath }) => regularPath.startsWith(`/${postsDir}/`), | ||
frontmatter: { | ||
layout: getLayout('Post', 'Page'), | ||
permalink: '/:year/:month/:day/:slug' | ||
permalink: permalink | ||
}, | ||
@@ -49,0 +51,0 @@ data: { type: 'post' } |
{ | ||
"name": "@vuepress/plugin-blog", | ||
"version": "1.0.0-alpha.20", | ||
"version": "1.0.0-alpha.21", | ||
"description": "blog plugin for vuepress", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6575
207