April 19, 2020
Install the Gatsby plugin:
npm install gatsby-plugin-sitemap
Then, add the root URL of your site (before the part that starts with /
) to your gatsby-config.js
, and activate the plugin:
// gatsby-config.js
module.exports = {
siteMetadata: {
siteUrl: "https://benborgers.com"
},
plugins: [
"gatsby-plugin-sitemap"
]
}
Done! Your sitemap will be created at /sitemap.xml
in production builds of your Gatsby website, and will also be properly linked in the <head>
of each page.
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iām working on!