diff options
| author | saturneric <[email protected]> | 2025-06-28 15:04:55 +0000 | 
|---|---|---|
| committer | saturneric <[email protected]> | 2025-06-28 15:04:55 +0000 | 
| commit | 267f46ecc0645ffb5e377806fffe0879e9c87606 (patch) | |
| tree | db4cbc4d842f2e53db37ea146b8d95f1b3f0951a | |
| parent | docs(overview): improve formatting and readability of GPG security section in... (diff) | |
| download | Manual-267f46ecc0645ffb5e377806fffe0879e9c87606.tar.gz Manual-267f46ecc0645ffb5e377806fffe0879e9c87606.zip | |
feat: add sitemap integration and update robots.txt for SEO
Diffstat (limited to '')
| -rw-r--r-- | astro.config.mjs | 3 | ||||
| -rw-r--r-- | package-lock.json | 7 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | public/robots.txt | 4 | 
4 files changed, 12 insertions, 3 deletions
| diff --git a/astro.config.mjs b/astro.config.mjs index 9cdb046..3d25b76 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,9 +2,11 @@ import { defineConfig } from "astro/config";  import starlight from "@astrojs/starlight";  import netlify from "@astrojs/netlify";  import starlightThemeNova from "starlight-theme-nova"; +import sitemap from "@astrojs/sitemap";  // https://astro.build/config  export default defineConfig({ +  site: "https://gpgfrontend.bktus.com",    integrations: [      starlight({        plugins: [starlightThemeNova()], @@ -58,6 +60,7 @@ export default defineConfig({        ],        customCss: ["./src/styles/custom.css"],      }), +    sitemap(),    ],    output: "server",    adapter: netlify(), diff --git a/package-lock.json b/package-lock.json index 606c4a2..3727557 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@        "version": "0.0.1",        "dependencies": {          "@astrojs/netlify": "^6.2.5", +        "@astrojs/sitemap": "^3.4.1",          "@astrojs/starlight": "^0.34.2",          "astro": "^5.6.1",          "sharp": "^0.32.5", @@ -313,9 +314,9 @@        }      },      "node_modules/@astrojs/sitemap": { -      "version": "3.3.0", -      "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.3.0.tgz", -      "integrity": "sha512-nYE4lKQtk+Kbrw/w0G0TTgT724co0jUsU4tPlHY9au5HmTBKbwiCLwO/15b1/y13aZ4Kr9ZbMeMHlXuwn0ty4Q==", +      "version": "3.4.1", +      "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.4.1.tgz", +      "integrity": "sha512-VjZvr1e4FH6NHyyHXOiQgLiw94LnCVY4v06wN/D0gZKchTMkg71GrAHJz81/huafcmavtLkIv26HnpfDq6/h/Q==",        "license": "MIT",        "dependencies": {          "sitemap": "^8.0.0", diff --git a/package.json b/package.json index 279bd54..e8637bc 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@    },    "dependencies": {      "@astrojs/netlify": "^6.2.5", +    "@astrojs/sitemap": "^3.4.1",      "@astrojs/starlight": "^0.34.2",      "astro": "^5.6.1",      "sharp": "^0.32.5", diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..03e0a2d --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://gpgfrontend.bktus.com/sitemap-index.xml
\ No newline at end of file | 
