Skip to content

Commit c8cd2ec

Browse files
committed
sitemap and robots.txt added
1 parent 5341fe5 commit c8cd2ec

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

astro.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ import { defineConfig } from "astro/config";
22
import solidJs from "@astrojs/solid-js";
33
import mdx from "@astrojs/mdx";
44
import icon from "astro-icon";
5+
import sitemap from "@astrojs/sitemap";
56

67
import pagefind from "./pagefind";
78
import { markdownConfig } from "./src/config/io/markdown.ts";
89

910
// https://astro.build/config
1011
export default defineConfig({
1112
markdown: markdownConfig,
13+
site: "https://quickshell.outfoxxed.me",
1214
integrations: [
1315
solidJs({
1416
devtools: true,
1517
}),
1618
mdx(),
1719
pagefind(),
1820
icon(),
21+
sitemap(),
1922
],
2023
});

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@astrojs/check": "^0.9.4",
1515
"@astrojs/markdown-remark": "^5.3.0",
1616
"@astrojs/mdx": "^3.1.8",
17+
"@astrojs/sitemap": "^3.2.1",
1718
"@astrojs/solid-js": "^4.4.2",
1819
"@fontsource-variable/rubik": "^5.1.0",
1920
"@hbsnow/rehype-sectionize": "^1.0.7",

public/robots.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://quickshell.outfoxxed.me/sitemap-index.xml

src/config/Head.astro

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const { title, description } = Astro.props;
1414
<meta name="viewport" content="width=device-width, initial-scale=1" />
1515
<meta name="generator" content={Astro.generator} />
1616
<link rel="canonical" href={Astro.url} />
17+
<link rel="sitemap" href="/sitemap-index.xml" />
1718

1819
<title>{title}</title>
1920
<meta name="description" content={description} />

yarn.lock

+63
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,17 @@ __metadata:
212212
languageName: node
213213
linkType: hard
214214

215+
"@astrojs/sitemap@npm:^3.2.1":
216+
version: 3.2.1
217+
resolution: "@astrojs/sitemap@npm:3.2.1"
218+
dependencies:
219+
sitemap: "npm:^8.0.0"
220+
stream-replace-string: "npm:^2.0.0"
221+
zod: "npm:^3.23.8"
222+
checksum: 10c0/03a883dcf5ea18963e2b9031c07ea131d8c79efbc76abb42a06e71db1ad252696846c187187f2804b16d1d51b740419433a1eacb4abe0e93d74056320aee12ae
223+
languageName: node
224+
linkType: hard
225+
215226
"@astrojs/solid-js@npm:^4.4.2":
216227
version: 4.4.2
217228
resolution: "@astrojs/solid-js@npm:4.4.2"
@@ -1900,6 +1911,13 @@ __metadata:
19001911
languageName: node
19011912
linkType: hard
19021913

1914+
"@types/node@npm:^17.0.5":
1915+
version: 17.0.45
1916+
resolution: "@types/node@npm:17.0.45"
1917+
checksum: 10c0/0db377133d709b33a47892581a21a41cd7958f22723a3cc6c71d55ac018121382de42fbfc7970d5ae3e7819dbe5f40e1c6a5174aedf7e7964e9cb8fa72b580b0
1918+
languageName: node
1919+
linkType: hard
1920+
19031921
"@types/node@npm:^20.14.11":
19041922
version: 20.16.12
19051923
resolution: "@types/node@npm:20.16.12"
@@ -1916,6 +1934,15 @@ __metadata:
19161934
languageName: node
19171935
linkType: hard
19181936

1937+
"@types/sax@npm:^1.2.1":
1938+
version: 1.2.7
1939+
resolution: "@types/sax@npm:1.2.7"
1940+
dependencies:
1941+
"@types/node": "npm:*"
1942+
checksum: 10c0/d077a761a0753b079bf8279b3993948030ca86ed9125437b9b29c1de40db9b2deb7fddc369f014b58861d450e8b8cc75f163aa29dc8cea81952efbfd859168cf
1943+
languageName: node
1944+
linkType: hard
1945+
19191946
"@types/tar@npm:^6.1.13":
19201947
version: 6.1.13
19211948
resolution: "@types/tar@npm:6.1.13"
@@ -2980,6 +3007,13 @@ __metadata:
29803007
languageName: node
29813008
linkType: hard
29823009

3010+
"arg@npm:^5.0.0":
3011+
version: 5.0.2
3012+
resolution: "arg@npm:5.0.2"
3013+
checksum: 10c0/ccaf86f4e05d342af6666c569f844bec426595c567d32a8289715087825c2ca7edd8a3d204e4d2fb2aa4602e09a57d0c13ea8c9eea75aac3dbb4af5514e6800e
3014+
languageName: node
3015+
linkType: hard
3016+
29833017
"argparse@npm:^1.0.7":
29843018
version: 1.0.10
29853019
resolution: "argparse@npm:1.0.10"
@@ -6678,6 +6712,7 @@ __metadata:
66786712
"@astrojs/check": "npm:^0.9.4"
66796713
"@astrojs/markdown-remark": "npm:^5.3.0"
66806714
"@astrojs/mdx": "npm:^3.1.8"
6715+
"@astrojs/sitemap": "npm:^3.2.1"
66816716
"@astrojs/solid-js": "npm:^4.4.2"
66826717
"@astrojs/ts-plugin": "npm:^1.10.3"
66836718
"@biomejs/biome": "npm:^1.8.3"
@@ -7060,6 +7095,13 @@ __metadata:
70607095
languageName: node
70617096
linkType: hard
70627097

7098+
"sax@npm:^1.2.4":
7099+
version: 1.4.1
7100+
resolution: "sax@npm:1.4.1"
7101+
checksum: 10c0/6bf86318a254c5d898ede6bd3ded15daf68ae08a5495a2739564eb265cd13bcc64a07ab466fb204f67ce472bb534eb8612dac587435515169593f4fffa11de7c
7102+
languageName: node
7103+
linkType: hard
7104+
70637105
"section-matter@npm:^1.0.0":
70647106
version: 1.0.0
70657107
resolution: "section-matter@npm:1.0.0"
@@ -7226,6 +7268,20 @@ __metadata:
72267268
languageName: node
72277269
linkType: hard
72287270

7271+
"sitemap@npm:^8.0.0":
7272+
version: 8.0.0
7273+
resolution: "sitemap@npm:8.0.0"
7274+
dependencies:
7275+
"@types/node": "npm:^17.0.5"
7276+
"@types/sax": "npm:^1.2.1"
7277+
arg: "npm:^5.0.0"
7278+
sax: "npm:^1.2.4"
7279+
bin:
7280+
sitemap: dist/cli.js
7281+
checksum: 10c0/adaabfb1f27e3c76ba25f9a16dcb02ff17dd2ecbd1b2dbe2608a6770eff37bd71f7d21c10df6824917453bc4da2c2790fd85ee6424d75699bd053e3422d2ef5c
7282+
languageName: node
7283+
linkType: hard
7284+
72297285
"smart-buffer@npm:^4.2.0":
72307286
version: 4.2.0
72317287
resolution: "smart-buffer@npm:4.2.0"
@@ -7351,6 +7407,13 @@ __metadata:
73517407
languageName: node
73527408
linkType: hard
73537409

7410+
"stream-replace-string@npm:^2.0.0":
7411+
version: 2.0.0
7412+
resolution: "stream-replace-string@npm:2.0.0"
7413+
checksum: 10c0/6cdf6108c57a869c1282dece0728bd7a8e314855bee71992436460192cdf46b3c976451e1e114716af209b2bfefa0e7e4581ca0eebc330d9dfcde341a72d50af
7414+
languageName: node
7415+
linkType: hard
7416+
73547417
"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3":
73557418
version: 4.2.3
73567419
resolution: "string-width@npm:4.2.3"

0 commit comments

Comments
 (0)