Skip to content

Commit

Permalink
Merge pull request #952 from tubone24/add_test2
Browse files Browse the repository at this point in the history
Add test2
  • Loading branch information
tubone24 authored May 5, 2022
2 parents 345ca7d + 0a33dd7 commit f9e31c2
Show file tree
Hide file tree
Showing 31 changed files with 275 additions and 326 deletions.
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

0 comments on commit f9e31c2

Please sign in to comment.