From 7a426f4af9cb0c3e108dac1f3b2bb3fe12defabf Mon Sep 17 00:00:00 2001 From: Oleksa Novyk Date: Wed, 18 Dec 2024 10:37:31 +0200 Subject: [PATCH] Enable sitemap --- astro.config.mjs | 4 ++++ package-lock.json | 1 + package.json | 1 + public/robots.txt | 4 ++++ 4 files changed, 10 insertions(+) create mode 100644 public/robots.txt diff --git a/astro.config.mjs b/astro.config.mjs index 879b1f7..58f82db 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,8 +2,11 @@ import {defineConfig} from 'astro/config'; import starlight from '@astrojs/starlight'; +import sitemap from '@astrojs/sitemap'; + // https://astro.build/config export default defineConfig({ + site: 'https://info.bsky.one', integrations: [ starlight({ customCss: ['./src/fonts/fixel.css', './src/styles/theme.css', './src/styles/common.css'], @@ -65,5 +68,6 @@ export default defineConfig({ }, ], }), + sitemap(), ], }); diff --git a/package-lock.json b/package-lock.json index 43a04a1..d84b593 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "version": "0.0.1", "dependencies": { "@astrojs/check": "^0.9.4", + "@astrojs/sitemap": "^3.2.1", "@astrojs/starlight": "^0.28.3", "astro": "^4.15.3", "sharp": "^0.32.5", diff --git a/package.json b/package.json index 446a979..d6da3de 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@astrojs/check": "^0.9.4", + "@astrojs/sitemap": "^3.2.1", "@astrojs/starlight": "^0.28.3", "astro": "^4.15.3", "sharp": "^0.32.5", diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..2b7893d --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://info.bsky.one/sitemap-index.xml