init
This commit is contained in:
88
gridsome.config.js
Normal file
88
gridsome.config.js
Normal file
@@ -0,0 +1,88 @@
|
||||
// This is where project configuration and plugin options are located.
|
||||
// Learn more: https://gridsome.org/docs/config
|
||||
|
||||
// Changes here require a server restart.
|
||||
// To restart press CTRL + C in terminal and run `gridsome develop`
|
||||
|
||||
module.exports = {
|
||||
siteName: 'Alliance for a Conscious Internet',
|
||||
siteDescription: 'ThreeFold Partners',
|
||||
siteUrl: 'http://localhost:8080',
|
||||
plugins: [
|
||||
{
|
||||
use: 'gridsome-plugin-tailwindcss',
|
||||
options: {
|
||||
tailwindConfig: './tailwind.config.js',
|
||||
purgeConfig: {
|
||||
whitelist: ['svg-inline--fa', 'table', 'table-striped', 'table-bordered', 'table-hover', 'table-sm'],
|
||||
whitelistPatterns: [/fa-$/, /blockquote$/, /code$/, /pre$/, /table$/, /table-$/]
|
||||
},
|
||||
presetEnvConfig: {},
|
||||
shouldPurge: false,
|
||||
shouldImport: true,
|
||||
shouldTimeTravel: true,
|
||||
shouldPurgeUnusedKeyframes: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
use: 'gridsome-source-static-meta',
|
||||
options: {
|
||||
path: 'content/site/*.json'
|
||||
}
|
||||
},
|
||||
{
|
||||
use: '@gridsome/source-filesystem',
|
||||
options: {
|
||||
typeName: 'Author',
|
||||
path: './content/author/*.md'
|
||||
}
|
||||
},
|
||||
{
|
||||
use: '@gridsome/source-filesystem',
|
||||
options: {
|
||||
typeName: 'Blog',
|
||||
path: './content/blog/**/*.md',
|
||||
refs: {
|
||||
author: 'Author',
|
||||
tags: {
|
||||
typeName: 'Tag',
|
||||
create: true
|
||||
},
|
||||
category: {
|
||||
typeName: 'Category',
|
||||
create: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
transformers: {
|
||||
remark: {
|
||||
plugins: [
|
||||
'@noxify/gridsome-remark-table-align',
|
||||
['@noxify/gridsome-remark-classes', {
|
||||
'table': 'table table-striped',
|
||||
'tableCell[align=center]': 'text-center',
|
||||
'tableCell[align=right]': 'text-right'
|
||||
}]
|
||||
]
|
||||
}
|
||||
},
|
||||
templates: {
|
||||
Blog: [{
|
||||
path: '/blog/:title'
|
||||
}],
|
||||
Category: [{
|
||||
path: '/category/:title',
|
||||
component: '~/templates/Category.vue'
|
||||
}],
|
||||
Author: [{
|
||||
path: '/author/:name',
|
||||
component: '~/templates/Author.vue'
|
||||
}],
|
||||
Tag: [{
|
||||
path: '/tags/:title',
|
||||
component: '~/templates/Tag.vue'
|
||||
}],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user