代码拉取完成,页面将自动刷新
const path = require("path");
module.exports = {
siteMetadata: {
title: "Yihong0618",
siteUrl: "https://yihong.run",
description: "Personal site and blog",
},
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
"gatsby-remark-responsive-iframe",
"gatsby-remark-smartypants",
"gatsby-remark-widows",
"gatsby-remark-external-links",
{
resolve: "gatsby-remark-autolink-headers",
options: {
className: "header-link",
},
},
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 600,
quality: 80,
withWebp: { quality: 80 },
},
},
],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "src",
path: `${__dirname}/posts`,
},
},
{
resolve: "gatsby-plugin-sass",
options: {
precision: 8,
},
},
"gatsby-transformer-yaml",
"gatsby-transformer-json",
{
resolve: "gatsby-source-filesystem",
options: {
path: "./data/",
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/posts/images`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "static_images",
path: `${__dirname}/src/images`,
ignore: ["**/.(js|jsx|scss)"],
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /assets/
}
}
},
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
//"gatsby-redirect-from",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-robots-txt",
options: {
policy: [{ userAgent: "*", allow: "/" }],
},
},
],
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。