-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): Add sitemap integration and update Astro config
- Added `@astrojs/sitemap` as a dependency in `package.json` - Updated `astro.config.mjs` to include the `integrations` property with the value of `[sitemap()]` - Added `<link rel="sitemap" href={base + "sitemap-index.xml"} />` in `BaseHead.astro` These changes enable sitemap generation for the website and improve SEO.
- Loading branch information
1 parent
bac616d
commit 64b9afc
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import sitemap from "@astrojs/sitemap"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: 'https://moltenobsidian.dev', | ||
base: '/', | ||
output: 'static' | ||
}); | ||
site: 'https://moltenobsidian.dev', | ||
base: '/', | ||
output: 'static', | ||
integrations: [sitemap()] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters