Skip to content

Commit b87fbd8

Browse files
committed
Added sitemap
1 parent d582d90 commit b87fbd8

File tree

15 files changed

+74
-62
lines changed

15 files changed

+74
-62
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import react from '@astrojs/react';
88
import expressiveCode from 'astro-expressive-code';
99
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers';
1010

11+
import sitemap from "@astrojs/sitemap";
12+
1113
// https://astro.build/config
1214
export default defineConfig({
1315
site: "https://shawn-mcgee.github.io",
@@ -30,5 +32,5 @@ export default defineConfig({
3032
defaultProps: {
3133
showLineNumbers: false
3234
}
33-
}), react(), mdx()],
35+
}), react(), mdx(), sitemap()],
3436
});

bun.lockb

2.47 KB
Binary file not shown.

idea/also_test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
title: "This is a Markdown Document"
3+
pubDate: 2025-03-19
34
---

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@astrojs/mdx": "^4.2.0",
1313
"@astrojs/react": "^4.2.1",
1414
"@astrojs/rss": "^4.0.11",
15+
"@astrojs/sitemap": "^3.3.0",
1516
"@expressive-code/plugin-line-numbers": "^0.40.2",
1617
"@tailwindcss/typography": "^0.5.16",
1718
"@tailwindcss/vite": "^4.0.14",

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://shawn-mcgee.github.io/sitemap-index.xml

src/components/Tag.astro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
export type Props = {
3+
tag: string
4+
}
5+
6+
const { tag } = Astro.props
7+
---
8+
<a href={`/idea/tag/#${tag}/`} class="">
9+
<span class="btn btn-ghost rounded-full text-lg text-primary">
10+
#{tag}
11+
</span>
12+
</a>

src/components/article/Tags.astro renamed to src/components/Tags.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import Tag from './Tag.astro'
2+
import Tag from "@components/Tag.astro"
33
44
export type Props = {
55
tags: Array<string> | undefined

src/components/article/Author.astro

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/components/article/Date.astro

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/components/article/Tag.astro

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)