Skip to content

Commit 5a8ae1b

Browse files
author
Andrew Aitken
committed
Reorganising blog posts and adding sitemap
1 parent 47a7a02 commit 5a8ae1b

27 files changed

Lines changed: 75 additions & 0 deletions

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { defineConfig } from 'astro/config';
2+
import sitemap from '@astrojs/sitemap';
23

34
export default defineConfig({
45
site: 'https://www.andrewaitken.com',
6+
integrations: [sitemap()],
57
markdown: {
68
shikiConfig: {
79
theme: 'one-dark-pro',

package-lock.json

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@astrojs/rss": "^4.0.15",
13+
"@astrojs/sitemap": "^3.7.1",
1314
"astro": "^5.18.0"
1415
}
1516
}

public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://www.andrewaitken.com/sitemap-index.xml
File renamed without changes.

src/data/blog/caching-file-contents-with-cachedependency.md renamed to src/data/blog/2011/caching-file-contents-with-cachedependency.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)