search init

This commit is contained in:
hamdy
2020-11-15 17:19:23 +02:00
parent 9fa5716b3d
commit 2c8099c6aa
3 changed files with 75 additions and 2 deletions

View File

@@ -8,7 +8,33 @@ module.exports = {
siteName: 'ACI',
siteDescription: 'ThreeFold Partners',
siteUrl: 'http://localhost:8080',
plugins: [{
plugins: [
{
use: 'gridsome-plugin-flexsearch',
options: {
searchFields: ['name', 'title','excerpt', 'author', 'content'],
collections: [
{
typeName: 'Blog',
indexName: 'Blog',
fields: ['name', 'title', 'rank', 'excerpt', 'image', 'path', 'datetime', 'author', 'pageInfo']
},
{
typeName: 'Project',
indexName: 'Project',
fields: ['title', 'rank', 'excerpt', 'image', 'path', 'datetime', 'author', 'pageInfo']
},
{
typeName: 'Person',
indexName: 'Person',
fields: ['name', 'rank', 'excerpt', 'image', 'path', 'bio', 'pageInfo']
},
]
}
},
{
use: 'gridsome-plugin-tailwindcss',
options: {
tailwindConfig: './tailwind.config.js',