using ids instead of titles

This commit is contained in:
hamdy
2020-11-08 13:03:30 +02:00
parent 3883450b09
commit 2607baf456

View File

@@ -42,6 +42,9 @@ module.exports = {
options: {
typeName: 'Blog',
path: './content/blog/**/*.md',
templates: {
BlogPost: '/blog/:id'
},
refs: {
author: 'Author',
tags: {
@@ -70,18 +73,18 @@ module.exports = {
},
templates: {
Blog: [{
path: '/blog/:title'
path: '/blog/:id'
}],
Category: [{
path: '/category/:title',
path: '/category/:id',
component: '~/templates/Category.vue'
}],
Author: [{
path: '/author/:name',
path: '/author/:id',
component: '~/templates/Author.vue'
}],
Tag: [{
path: '/tags/:title',
path: '/tags/:id',
component: '~/templates/Tag.vue'
}],
}