diff --git a/astro.config.mjs b/astro.config.mjs index f72e530..81cdf31 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,10 +1,12 @@ import { defineConfig } from 'astro/config' import tailwind from '@astrojs/tailwind' import react from '@astrojs/react' +import sitemap from '@astrojs/sitemap'; // https://astro.build/config export default defineConfig({ - integrations: [tailwind({ config: { applyBaseStyles: false } }), react()], + site: 'https://lumeweb.com', + integrations: [tailwind({ config: { applyBaseStyles: false } }), react(), sitemap()], experimental: { assets: true } diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 94ff2a6..0f7be08 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -9,8 +9,10 @@ "version": "0.3.0-develop.1", "dependencies": { "@astrojs/react": "^2.1.1", + "@astrojs/sitemap": "^2.0.2", "@astrojs/tailwind": "^3.1.1", "@types/react": "^18.2.0", + "add": "^2.0.6", "astro": "^2.3.2", "autoprefixer": "^10.4.14", "qrcode": "^1.5.3", @@ -143,6 +145,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", "resolved": "https://registry.npmjs.org/@astrojs/tailwind/-/tailwind-3.1.3.tgz", @@ -1900,6 +1911,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", @@ -1940,6 +1956,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.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", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", @@ -1988,6 +2012,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", @@ -11123,6 +11152,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", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", @@ -11833,6 +11867,24 @@ "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/slash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", diff --git a/package.json b/package.json index 8328783..39e487c 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,10 @@ }, "dependencies": { "@astrojs/react": "^2.1.1", + "@astrojs/sitemap": "^2.0.2", "@astrojs/tailwind": "^3.1.1", "@types/react": "^18.2.0", + "add": "^2.0.6", "astro": "^2.3.2", "autoprefixer": "^10.4.14", "qrcode": "^1.5.3", diff --git a/public/robots.txt b/public/robots.txt index 26b4d70..ae1f0c1 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,3 @@ User-Agent: * -Allow: / \ No newline at end of file +Allow: / +Sitemap: sitemap-index.xml diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index fd31d86..201f658 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -43,7 +43,7 @@ const url = "https://lumeweb.com"; - +