File tree 2 files changed +10
-2
lines changed
docs/docs/plugin/official
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ module.exports = (options, ctx) => {
5
5
const {
6
6
pageEnhancers = [ ] ,
7
7
categoryIndexPageUrl = '/category/' ,
8
- tagIndexPageUrl = '/tag/'
8
+ tagIndexPageUrl = '/tag/' ,
9
+ permalink = '/:year/:month/:day/:slug'
9
10
} = options
10
11
11
12
const isLayoutExists = name => layoutComponentMap [ name ] !== undefined
@@ -42,7 +43,7 @@ module.exports = (options, ctx) => {
42
43
when : ( { regularPath } ) => regularPath . startsWith ( '/_posts/' ) ,
43
44
frontmatter : {
44
45
layout : getLayout ( 'Post' , 'Page' ) ,
45
- permalink : '/:year/:month/:day/:slug'
46
+ permalink : permalink
46
47
} ,
47
48
data : { type : 'post' }
48
49
} ,
Original file line number Diff line number Diff line change @@ -32,3 +32,10 @@ module.exports = {
32
32
33
33
- Type: ` string `
34
34
- Default: ` /tag/ `
35
+
36
+ ### permalink
37
+
38
+ - Type: ` string `
39
+ - Default: ` /:year/:month/:day/:slug `
40
+
41
+ Configures the permalink generated for blog posts. See [ Permalinks] ( /guide/permalinks.html#template-variables ) for a list of valid variables.
You can’t perform that action at this time.
0 commit comments