代码拉取完成,页面将自动刷新
module.exports = {
siteMetadata: {
title: `清风朗月`,
image: "/gatsby-icon.png",
description: `Gatsby Starter Breeze`,
siteUrl: `https://gatsby-starter-breeze.netlify.app/`,
social: {
douban: "#",
email: "#",
facebook: "#",
github: "#",
instagram: "#",
linkedin: "#",
rss: "/rss.xml",
telegram: "#",
twitter: "#",
youtube: "#",
},
sidebarMenu: [
{ url: "/archive/", label: "归档" },
{ url: "/tags/", label: "标签" },
{ url: "/about", label: "About" },
],
footerHTML: `© 2020 <a href="https://github.com/keithnull">Keith Null</a> All rights reserved.`,
dateFormat: `YYYY-MM-DD`,
language: `zh`,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: `content`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
`gatsby-remark-autolink-headers`,
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
{
resolve: `gatsby-remark-classes`,
options: {
classMap: {
table: "table table-hover",
},
},
},
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
//trackingId: `ADD YOUR TRACKING ID HERE`,
},
},
{
resolve: `gatsby-plugin-feed`,
options: {
query: `
{
site {
siteMetadata {
title
description
siteUrl
site_url: siteUrl
}
}
}
`,
feeds: [
{
serialize: ({ query: { site, allMarkdownRemark } }) => {
return allMarkdownRemark.edges.map(edge => {
return Object.assign({}, edge.node.frontmatter, {
title: edge.node.frontmatter.title,
description:
edge.node.frontmatter.description || edge.node.excerpt,
date: edge.node.fields.date,
url: site.siteMetadata.siteUrl + edge.node.fields.slug,
guid: site.siteMetadata.siteUrl + edge.node.fields.slug,
custom_elements: [{ "content:encoded": edge.node.html }],
})
})
},
query: `
{
allMarkdownRemark(
sort: { order: DESC, fields: [fields___date] },
filter: {frontmatter: {layout: {ne: "page"}}},
) {
edges {
node {
excerpt
html
fields {
slug
date
}
frontmatter {
title
description
}
}
}
}
}
`,
output: "/rss.xml",
title: "清风朗月",
},
],
},
},
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Starter Breeze`,
short_name: `Breeze`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `static/gatsby-icon.png`,
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`Quicksand`, `Noto Serif SC`],
display: "swap",
},
},
{
resolve: "gatsby-plugin-gitalk",
options: {
config: {
clientID: "ee045e67607d9cc5d75b",
clientSecret: "c0f18c2238127559210f0bf94711a5c345eea7f8",
repo: "gatsby-starter-breeze",
owner: "keithnull",
admin: ["keithnull"],
pagerDirection: "last",
createIssueManually: true,
distractionFreeMode: true,
enableHotKey: true,
},
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。