Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test2 #952

Merged
merged 5 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ReactGA from "react-ga";
import ReactGA from "react-ga4";
import * as Sentry from "@sentry/browser";
import { Integrations } from "@sentry/tracing";

Expand All @@ -24,9 +24,9 @@ if (isLocalDevelopment() === false) {
});
}

export const onRouteUpdate = (state) => {
export const onRouteUpdate = (_state) => {
if (isLocalDevelopment() !== true) {
ReactGA.pageview(state.location.pathname);
ReactGA.send("pageview");
}
};

Expand Down
48 changes: 31 additions & 17 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ const {
} = process.env;
const isNetlifyProduction = NETLIFY_ENV === "production";
const siteUrl = isNetlifyProduction ? NETLIFY_SITE_URL : NETLIFY_DEPLOY_URL;
const siteTitle = "tubone BOYAKI";
const siteShortTitle = "tuboneBOYAKI";
const siteDescription =
"tubones BOYAKI is the developer blog by tubone who is Japanese IT Developer";
const siteAuthor = "tubone";

module.exports = {
pathPrefix: "/",
siteMetadata: {
title: "tubone BOYAKI",
description: "tubone BOYAKI is a tubone blog",
title: siteTitle,
description: siteDescription,
siteUrl,
author: "tubone",
author: siteAuthor,
},
plugins: [
"gatsby-plugin-preact",
Expand Down Expand Up @@ -145,9 +151,9 @@ module.exports = {
}
`,
output: "/rss.xml",
title: "tubone BOYAKI",
feed_url: "https://blog.tubone-project24.xyz/rss.xml",
site_url: "https://blog.tubone-project24.xyz",
title: siteTitle,
feed_url: `${siteUrl}/rss.xml`,
site_url: siteUrl,
docs: "http://github.com/dylang/node-rss",
},
],
Expand All @@ -162,8 +168,6 @@ module.exports = {
resolve: "gatsby-transformer-remark",
options: {
plugins: [
"gatsby-remark-embed-youtube",
"gatsby-plugin-twitter",
{
resolve: "gatsby-remark-table-of-contents",
options: {
Expand All @@ -173,16 +177,25 @@ module.exports = {
toHeading: 4,
},
},
"gatsby-remark-numbered-footnotes",
{
resolve: "gatsby-remark-embed-soundcloud",
resolve: "@raae/gatsby-remark-oembed",
options: {
width: "80%", // default is "100%"
height: 200, // default is 300
color: "#6cff8c", // default is #ff5500
autoplay: false, // default is false
usePrefix: false,
providers: {
settings: {
hatenablog: {
endpoints: [
{
schemes: ["https://*.hatenablog.com/*"],
url: "https://hatenablog.com/oembed",
},
],
},
},
},
},
},
"gatsby-remark-numbered-footnotes",
"gatsby-remark-prismjs-title",
{
resolve: "gatsby-remark-prismjs",
Expand All @@ -201,6 +214,7 @@ module.exports = {
rel: "noopener noreferrer",
},
},
"gatsby-remark-check-links",
],
},
},
Expand All @@ -226,9 +240,9 @@ module.exports = {
{
resolve: "gatsby-plugin-manifest",
options: {
name: "tubone BOYAKI",
short_name: "tuboneBOYAKI",
description: "tubone Blog",
name: siteTitle,
short_name: siteShortTitle,
description: siteDescription,
lang: "ja",
start_url: "/",
background_color: "#ededed",
Expand Down
Loading