init blog (wip)

This commit is contained in:
Hans Pagel
2021-07-09 18:24:23 +02:00
parent 1b7ef80603
commit 2e40a827fb
17 changed files with 748 additions and 6 deletions

View File

@@ -61,7 +61,35 @@ module.exports = {
},
},
},
{
use: '@gridsome/vue-remark',
options: {
typeName: 'Post',
baseDir: './src/posts',
template: './src/templates/Post/index.vue',
route: '/blog/:slug',
plugins: [
'@gridsome/remark-prismjs',
'remark-container',
'remark-toc',
tableWrapper,
],
remark: {
autolinkHeadings: {
content: {
type: 'text',
value: '#',
},
},
},
},
},
],
transformers: {
remark: {
// global remark options
},
},
runtimeCompiler: true,
configureWebpack: {
node: {