add sitemap

This commit is contained in:
LWinterberg
2023-10-04 13:08:42 +02:00
parent f0d2a8b8f2
commit 0b23e71f2f
4 changed files with 52 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
import { defineConfig } from "astro/config";
// https://astro.build/config
import compress from "astro-compress";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
// https://astro.build/config
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: "https://audacity.github.io",
@@ -14,7 +14,7 @@ export default defineConfig({
// Example: Disable injecting a basic `base.css` import on every page.
// Useful if you need to define and/or import your own custom `base.css`.
applyBaseStyles: false
}), react(), compress()],
}), react(), compress(), sitemap()],
vite: {
ssr: {
noExternal: ["@datapunt/matomo-tracker-react", "@datapunt/matomo-tracker-js"]

46
package-lock.json generated
View File

@@ -9,6 +9,7 @@
"version": "0.0.1",
"dependencies": {
"@astrojs/react": "^3.0.2",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/tailwind": "^5.0.0",
"@fontsource-variable/signika": "^5.0.8",
"@fontsource/twinkle-star": "^5.0.8",
@@ -102,6 +103,15 @@
"react-dom": "^17.0.2 || ^18.0.0"
}
},
"node_modules/@astrojs/sitemap": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.0.0.tgz",
"integrity": "sha512-qm7npHuUW4q3OOmulqhJ1g69jEQu0Sdc6P8NbOzqIoosj/L+3v4i8dtKBnp6n1UQ4Sx8H8Vdi3Z/On7i9/ZJhw==",
"dependencies": {
"sitemap": "^7.1.1",
"zod": "3.21.1"
}
},
"node_modules/@astrojs/tailwind": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-5.0.0.tgz",
@@ -1153,6 +1163,14 @@
"resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz",
"integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q=="
},
"node_modules/@types/sax": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.5.tgz",
"integrity": "sha512-9jWta97bBVC027/MShr3gLab8gPhKy4l6qpb+UJLF5pDm3501NvA7uvqVCW+REFtx00oTi6Cq9JzLwgq6evVgw==",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/scheduler": {
"version": "0.16.2",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
@@ -5769,6 +5787,11 @@
}
]
},
"node_modules/sax": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz",
"integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA=="
},
"node_modules/scheduler": {
"version": "0.23.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
@@ -5951,6 +5974,29 @@
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
"integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="
},
"node_modules/sitemap": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz",
"integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==",
"dependencies": {
"@types/node": "^17.0.5",
"@types/sax": "^1.2.1",
"arg": "^5.0.0",
"sax": "^1.2.4"
},
"bin": {
"sitemap": "dist/cli.js"
},
"engines": {
"node": ">=12.0.0",
"npm": ">=5.6.0"
}
},
"node_modules/sitemap/node_modules/@types/node": {
"version": "17.0.45",
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz",
"integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw=="
},
"node_modules/source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",

View File

@@ -11,6 +11,7 @@
},
"dependencies": {
"@astrojs/react": "^3.0.2",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/tailwind": "^5.0.0",
"@fontsource-variable/signika": "^5.0.8",
"@fontsource/twinkle-star": "^5.0.8",

View File

@@ -19,6 +19,7 @@ const { title } = Astro.props;
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<link href="/output.css" rel="stylesheet" />
<meta name="generator" content={Astro.generator} />
<link rel="sitemap" href="/sitemap-index.xml" />
<meta
name="title"
content="Audacity: Free, Open-Source Audio Editing Software"