Skip to content

Commit 50b18f2

Browse files
authored
SEO (#1)
configure the sitemap, canonical urls, robotx,txt and lang attribute into the html tag
1 parent c9e0f83 commit 50b18f2

File tree

4 files changed

+284
-1
lines changed

4 files changed

+284
-1
lines changed

gatsby-config.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@ const config: GatsbyConfig = {
55
siteMetadata: {
66
title: "Browser Actions",
77
description: "GitHub Actions for Browsers",
8-
siteUrl: "https://browser-actions.github.io",
8+
siteUrl: "https://browser-actions.dev",
99
social: {
1010
twitter: "ueokande",
1111
},
1212
},
1313
graphqlTypegen: true,
1414
plugins: [
15+
"gatsby-plugin-sitemap",
16+
{
17+
resolve: "gatsby-plugin-canonical-urls",
18+
options: {
19+
siteUrl: "https://browser-actions.dev",
20+
},
21+
},
22+
"gatsby-plugin-robots-txt",
1523
{
1624
resolve: "gatsby-source-filesystem",
1725
options: {

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
"dependencies": {
1919
"babel-plugin-styled-components": "^2.1.4",
2020
"gatsby": "^5.13.5",
21+
"gatsby-plugin-canonical-urls": "^5.13.1",
2122
"gatsby-plugin-image": "^3.13.1",
2223
"gatsby-plugin-manifest": "^5.13.1",
24+
"gatsby-plugin-robots-txt": "^1.8.0",
2325
"gatsby-plugin-sharp": "^5.13.1",
26+
"gatsby-plugin-sitemap": "^6.13.1",
2427
"gatsby-plugin-styled-components": "^6.13.1",
2528
"gatsby-source-filesystem": "^5.13.1",
2629
"gatsby-transformer-sharp": "^5.13.1",

0 commit comments

Comments
 (0)