-
-
Save nearfal08/4e57d9cd3d587b8883f4c41af2ec70e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is where project configuration and plugin options are located. | |
// Learn more: https://gridsome.org/docs/config | |
// Changes here requires a server restart. | |
// To restart press CTRL + C in terminal and run `gridsome develop` | |
module.exports = { | |
siteName: 'Weston Walker', | |
siteDescription: 'Programming course, tips, and tricks to help you get hired.', | |
templates: { | |
Post: '/:title', | |
Tag: '/tag/:id' | |
}, | |
plugins: [ | |
{ | |
// Create posts from markdown files | |
use: '@gridsome/source-filesystem', | |
options: { | |
typeName: 'Post', | |
path: 'content/posts/*.md', | |
refs: { | |
// Creates a GraphQL collection from 'tags' in front-matter and adds a reference. | |
tags: { | |
typeName: 'Tag', | |
create: true | |
} | |
}, | |
remark: { | |
plugins: [ | |
['@noxify/gridsome-plugin-remark-embed', { | |
'enabledProviders': ['Youtube', 'Twitter', 'Gist'], | |
}] | |
] | |
} | |
} | |
}, | |
{ | |
use: '@gridsome/plugin-google-analytics', | |
options: { | |
id: 'UA-166746426-1' | |
} | |
} | |
], | |
transformers: { | |
//Add markdown support to all file-system sources | |
remark: { | |
externalLinksTarget: '_blank', | |
externalLinksRel: ['nofollow', 'noopener', 'noreferrer'], | |
anchorClassName: 'icon icon-link', | |
plugins: [ | |
'@gridsome/remark-prismjs' | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment