using ids instead of titles
This commit is contained in:
@@ -42,6 +42,9 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
typeName: 'Blog',
|
typeName: 'Blog',
|
||||||
path: './content/blog/**/*.md',
|
path: './content/blog/**/*.md',
|
||||||
|
templates: {
|
||||||
|
BlogPost: '/blog/:id'
|
||||||
|
},
|
||||||
refs: {
|
refs: {
|
||||||
author: 'Author',
|
author: 'Author',
|
||||||
tags: {
|
tags: {
|
||||||
@@ -70,18 +73,18 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
templates: {
|
templates: {
|
||||||
Blog: [{
|
Blog: [{
|
||||||
path: '/blog/:title'
|
path: '/blog/:id'
|
||||||
}],
|
}],
|
||||||
Category: [{
|
Category: [{
|
||||||
path: '/category/:title',
|
path: '/category/:id',
|
||||||
component: '~/templates/Category.vue'
|
component: '~/templates/Category.vue'
|
||||||
}],
|
}],
|
||||||
Author: [{
|
Author: [{
|
||||||
path: '/author/:name',
|
path: '/author/:id',
|
||||||
component: '~/templates/Author.vue'
|
component: '~/templates/Author.vue'
|
||||||
}],
|
}],
|
||||||
Tag: [{
|
Tag: [{
|
||||||
path: '/tags/:title',
|
path: '/tags/:id',
|
||||||
component: '~/templates/Tag.vue'
|
component: '~/templates/Tag.vue'
|
||||||
}],
|
}],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user