2017-08-20 13:43:49 +02:00
|
|
|
module.exports = {
|
|
|
|
siteMetadata: {
|
2018-02-12 00:14:51 +01:00
|
|
|
url: 'https://lumen.netlify.com',
|
2017-08-20 13:43:49 +02:00
|
|
|
title: 'Blog by John Doe',
|
|
|
|
subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
|
|
|
|
copyright: '© All rights reserved.',
|
2017-10-10 16:53:14 +02:00
|
|
|
disqusShortname: '',
|
2017-08-20 13:43:49 +02:00
|
|
|
menu: [
|
|
|
|
{
|
|
|
|
label: 'Articles',
|
|
|
|
path: '/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'About me',
|
|
|
|
path: '/about/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Contact me',
|
|
|
|
path: '/contact/'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
author: {
|
|
|
|
name: 'John Doe',
|
|
|
|
email: '#',
|
|
|
|
telegram: '#',
|
|
|
|
twitter: '#',
|
|
|
|
github: '#',
|
|
|
|
rss: '#',
|
|
|
|
vk: '#'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
path: `${__dirname}/src/pages`,
|
|
|
|
name: 'pages'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-feed',
|
|
|
|
options: {
|
|
|
|
query: `
|
|
|
|
{
|
|
|
|
site {
|
|
|
|
siteMetadata {
|
2018-02-12 00:14:51 +01:00
|
|
|
site_url: url
|
2017-08-20 13:43:49 +02:00
|
|
|
title
|
2018-02-12 00:14:51 +01:00
|
|
|
description: subtitle
|
2017-08-20 13:43:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
feeds: [
|
|
|
|
{
|
|
|
|
serialize: ({ query: { site, allMarkdownRemark } }) => (
|
|
|
|
allMarkdownRemark.edges.map(edge =>
|
|
|
|
Object.assign({}, edge.node.frontmatter, {
|
|
|
|
description: edge.node.frontmatter.description,
|
|
|
|
date: edge.node.frontmatter.date,
|
2018-02-12 00:14:51 +01:00
|
|
|
url: site.siteMetadata.site_url + edge.node.fields.slug,
|
|
|
|
guid: site.siteMetadata.site_url + edge.node.fields.slug,
|
2017-08-20 13:43:49 +02:00
|
|
|
custom_elements: [{ 'content:encoded': edge.node.html }]
|
2018-01-21 01:03:59 +01:00
|
|
|
}))
|
2017-08-20 13:43:49 +02:00
|
|
|
),
|
|
|
|
query: `
|
|
|
|
{
|
|
|
|
allMarkdownRemark(
|
|
|
|
limit: 1000,
|
|
|
|
sort: { order: DESC, fields: [frontmatter___date] },
|
|
|
|
filter: { frontmatter: { layout: { eq: "post" }, draft: { ne: true } } }
|
|
|
|
) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
html
|
|
|
|
fields {
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
frontmatter {
|
|
|
|
title
|
|
|
|
date
|
|
|
|
layout
|
|
|
|
draft
|
|
|
|
description
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`,
|
|
|
|
output: '/rss.xml'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-transformer-remark',
|
|
|
|
options: {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-remark-images',
|
|
|
|
options: {
|
2018-01-21 01:03:59 +01:00
|
|
|
maxWidth: 960
|
2017-08-20 13:43:49 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-remark-responsive-iframe',
|
2018-01-21 01:03:59 +01:00
|
|
|
options: { wrapperStyle: 'margin-bottom: 1.0725rem' }
|
2017-08-20 13:43:49 +02:00
|
|
|
},
|
|
|
|
'gatsby-remark-prismjs',
|
|
|
|
'gatsby-remark-copy-linked-files',
|
|
|
|
'gatsby-remark-smartypants'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'gatsby-transformer-sharp',
|
|
|
|
'gatsby-plugin-sharp',
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-google-analytics',
|
2018-02-12 10:24:39 +01:00
|
|
|
options: { trackingId: 'UA-73379983-2' }
|
2017-08-20 13:43:49 +02:00
|
|
|
},
|
2018-01-21 16:54:33 +01:00
|
|
|
{
|
|
|
|
resolve: `gatsby-plugin-google-fonts`,
|
|
|
|
options: {
|
|
|
|
fonts: [`roboto\:400,400i,500,700`]
|
|
|
|
}
|
|
|
|
},
|
2017-08-20 13:43:49 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-sitemap',
|
|
|
|
options: {
|
|
|
|
query: `
|
|
|
|
{
|
|
|
|
site {
|
|
|
|
siteMetadata {
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allSitePage(
|
|
|
|
filter: {
|
|
|
|
path: { regex: "/^(?!/404/|/404.html|/dev-404-page/)/" }
|
|
|
|
}
|
|
|
|
) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
path
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
output: '/sitemap.xml',
|
|
|
|
serialize: ({ site, allSitePage }) =>
|
|
|
|
allSitePage.edges.map((edge) => {
|
|
|
|
return {
|
|
|
|
url: site.siteMetadata.url + edge.node.path,
|
|
|
|
changefreq: 'daily',
|
|
|
|
priority: 0.7
|
|
|
|
};
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'gatsby-plugin-offline',
|
|
|
|
'gatsby-plugin-catch-links',
|
|
|
|
'gatsby-plugin-react-helmet',
|
|
|
|
'gatsby-plugin-postcss-sass'
|
|
|
|
]
|
|
|
|
};
|