Skip to content

Commit 0544249

Browse files
committed
added sitemap, robots.txt, fixed github icon load
1 parent 3c92fd3 commit 0544249

File tree

4 files changed

+95
-3
lines changed

4 files changed

+95
-3
lines changed

astro.config.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { defineConfig } from 'astro/config';
22
import icon from "astro-icon";
3-
43
import svelte from "@astrojs/svelte";
4+
import sitemap from "@astrojs/sitemap";
5+
6+
import robotsTxt from "astro-robots-txt";
57

68
// https://astro.build/config
79
export default defineConfig({
8-
integrations: [icon(), svelte()]
10+
// site: 'https://adammehaney.github.io',
11+
// base: 'Binary-Search-Tree-Visualizer',
12+
integrations: [icon(), svelte(), sitemap(), robotsTxt()]
913
});

package-lock.json

Lines changed: 86 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/check": "^0.5.10",
14+
"@astrojs/sitemap": "^3.1.2",
1415
"@astrojs/svelte": "^5.3.0",
1516
"@fontsource-variable/manrope": "^5.0.19",
1617
"@iconify-json/material-symbols": "^1.1.76",
1718
"astro": "^4.5.16",
1819
"astro-icon": "^1.1.0",
20+
"astro-robots-txt": "^1.0.0",
1921
"svelte": "^4.2.12",
2022
"typescript": "^5.4.4"
2123
}

src/components/header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import GithubLogo from './src/images/github-mark-white.svg'
2+
import GithubLogo from '/src/images/github-mark-white.svg'
33
---
44

55
<header>

0 commit comments

Comments
 (0)