snipette-gridsome/gridsome.config.js

37 lines
767 B
JavaScript
Raw Normal View History

module.exports = {
2019-12-19 11:33:35 -05:00
siteName: 'Snipette',
siteUrl: 'https://www.gridsome.org',
2019-12-19 11:33:35 -05:00
siteDescription: 'Your weekly dose of perspective, understandibility and fun',
titleTemplate: `%s - Snipette`,
mediaUrlFrom: 'https://snipette-ghost.herokuapp.com/content/images/',
mediaUrlTo: 'https://media.snipettemag.com/',
templates: {
GhostPost: '/:slug',
GhostTag: '/tag/:slug',
GhostAuthor: '/author/:slug'
},
plugins: [
{
use: '@gridsome/plugin-google-analytics',
options: {
id: 'UA-XXXXXXXXX-X'
}
},
{
use: '@gridsome/source-ghost',
options: {
baseUrl: process.env.GHOST_API_URL,
contentKey: process.env.GHOST_CONTENT_KEY,
routes: {
post: '/:slug',
page: '/:slug',
author: '/author/:slug'
}
}
},
]
}