Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
(gatsby-config): Add canonical link to pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jcxldn committed Jul 26, 2023
1 parent c12845d commit 7d8738a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ const config: GatsbyConfig = {
},
},
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
// Works in production using `gatsby build --prefix-paths`
siteUrl: `https://2023.igem.wiki/city-of-london-uk/`,
},
},
`@colliercz/gatsby-transformer-gitinfo`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
Expand Down
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@mdx-js/react": "^2.3.0",
"@types/node": "^20.4.5",
"@types/webpack-stats-plugin": "^0.3.2",
"gatsby-plugin-canonical-urls": "^5.11.0",
"gatsby-plugin-image": "^3.11.0",
"gatsby-plugin-manifest": "^5.11.0",
"gatsby-plugin-mdx": "^5.11.0",
Expand Down

0 comments on commit 7d8738a

Please sign in to comment.