feat: add sitemap

This commit is contained in:
Derrick Hammer 2023-08-18 22:42:17 -04:00
parent 7c248cf200
commit e54c4c82d7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
4 changed files with 64 additions and 7 deletions

View File

@ -1,9 +1,11 @@
import { defineConfig } from 'astro/config';
import {defineConfig} from 'astro/config';
import tailwind from '@astrojs/tailwind';
import react from '@astrojs/react';
import image from '@astrojs/image';
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind({ config: { applyBaseStyles: false } }), image(), react()],
site: "https://web3extension.io",
integrations: [tailwind({config: {applyBaseStyles: false}}), image(), react(), sitemap()],
});

52
npm-shrinkwrap.json generated
View File

@ -10,11 +10,13 @@
"dependencies": {
"@astrojs/image": "^0.16.6",
"@astrojs/react": "^2.1.1",
"@astrojs/sitemap": "^2.0.2",
"@astrojs/tailwind": "^3.1.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^10.0.4",
"@semantic-release/release-notes-generator": "^11.0.4",
"add": "^2.0.6",
"astro": "^2.3.2",
"autoprefixer": "^10.4.14",
"sass": "^1.62.1",
@ -151,6 +153,15 @@
"react-dom": "^17.0.2 || ^18.0.0"
}
},
"node_modules/@astrojs/sitemap": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-2.0.2.tgz",
"integrity": "sha512-dFWtdFwN8kxDiqIxF8T8ODqsUr6hG+EQlFEqm+3oQkhAkucF9QkYLM5Q72mEbYytkL4jvKyHbW1u10T5sWBZew==",
"dependencies": {
"sitemap": "^7.1.1",
"zod": "^3.17.3"
}
},
"node_modules/@astrojs/tailwind": {
"version": "3.1.3",
"license": "MIT",
@ -1289,6 +1300,11 @@
"@types/unist": "*"
}
},
"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/@types/normalize-package-data": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz",
@ -1325,6 +1341,14 @@
"version": "1.20.2",
"license": "MIT"
},
"node_modules/@types/sax": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/scheduler": {
"version": "0.16.3",
"license": "MIT",
@ -1367,6 +1391,11 @@
"node": ">=0.4.0"
}
},
"node_modules/add": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/add/-/add-2.0.6.tgz",
"integrity": "sha512-j5QzrmsokwWWp6kUcJQySpbG+xfOBqqKnup3OIk1pz+kB/80SLorZ9V8zHFLO92Lcd+hbvq8bT+zOGoPkmBV0Q=="
},
"node_modules/agent-base": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz",
@ -9680,6 +9709,11 @@
"suf-log": "^2.5.3"
}
},
"node_modules/sax": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
},
"node_modules/scheduler": {
"version": "0.23.0",
"license": "MIT",
@ -10018,6 +10052,24 @@
"version": "1.0.5",
"license": "MIT"
},
"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/slash": {
"version": "4.0.0",
"license": "MIT",

View File

@ -18,15 +18,17 @@
"dependencies": {
"@astrojs/image": "^0.16.6",
"@astrojs/react": "^2.1.1",
"@astrojs/sitemap": "^2.0.2",
"@astrojs/tailwind": "^3.1.1",
"astro": "^2.3.2",
"autoprefixer": "^10.4.14",
"sass": "^1.62.1",
"tailwindcss": "^3.3.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^10.0.4",
"@semantic-release/release-notes-generator": "^11.0.4",
"semantic-release": "^21.0.7"
"add": "^2.0.6",
"astro": "^2.3.2",
"autoprefixer": "^10.4.14",
"sass": "^1.62.1",
"semantic-release": "^21.0.7",
"tailwindcss": "^3.3.2"
}
}

View File

@ -38,6 +38,7 @@ const url = "https://web3extension.io";
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={opengraph.src} />
<link rel="sitemap" href="/sitemap-index.xml" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];