1 Star 0 Fork 0

yihong0618/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gatsby-config.js 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
yihong0618 提交于 2020-09-14 21:55 . fix: index bug
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: "/" }],
},
},
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yihong0618/blog.git
git@gitee.com:yihong0618/blog.git
yihong0618
blog
blog
master

搜索帮助