Skip to content

Commit f7a6de7

Browse files
Add sitemap.xml using @astrojs/sitemap integration (#111)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ae47ce0 commit f7a6de7

4 files changed

Lines changed: 71 additions & 0 deletions

File tree

.impeccable/hook.cache.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":1,"sessions":{}}

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
3+
import sitemap from '@astrojs/sitemap';
34
import astroConsent from 'astro-consent';
45
import tailwindcss from '@tailwindcss/vite';
56

@@ -16,6 +17,7 @@ export default defineConfig({
1617
},
1718
},
1819
integrations: [
20+
sitemap(),
1921
astroConsent({
2022
siteName: 'This website',
2123
policyUrl: 'https://go.microsoft.com/fwlink/?LinkId=521839',

package-lock.json

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/rss": "4.0.18",
14+
"@astrojs/sitemap": "^3.7.3",
1415
"@microsoft/clarity": "^1.0.2",
1516
"@tailwindcss/vite": "4.3.1",
1617
"astro": "^7.0.2",

0 commit comments

Comments
 (0)