making file paths less of a pain to work with by adding import path in tsconfig.json

+4 -1
src/content/bookmarks/bookmarks.md
··· 1 1 --- 2 2 --- 3 + 3 4 - [vielle.dev](https://vielle.dev/) - Cool dev, she codes awesome stuff. Has helped quite a lot with my website too. :P 4 5 - [yugoslavia.best](https://yugoslavia.best) - Click here to experience instant brain explosion. 6 + 5 7 ## Resources and tools 8 + 6 9 - [Marginalia Search](https://marginalia-search.com/) - Better internet search engine that doesn't shove ads down your throat, unlike google. 7 - - [DaFont](https://www.dafont.com/) - Free fonts for commercial and personal use. Make sure to check the license for each font before using. 10 + - [DaFont](https://www.dafont.com/) - Free fonts for commercial and personal use. Make sure to check the license for each font before using.
+2 -2
src/content/bookmarks/personalsites.ts
··· 1 - import { type bookmark } from "../config"; 1 + import { type bookmark } from "/content/config"; 2 2 3 3 export const buttonwall: bookmark[] = [ 4 4 { ··· 51 51 url: "https://myrrh.city/", 52 52 filetype: ".png", 53 53 }, 54 - ]; 54 + ];
+2 -2
src/layouts/SinglePage.astro
··· 1 1 --- 2 - import "../styles/main.css"; 3 - import Toolbar from "../components/Toolbar.astro"; 2 + import "/styles/main.css"; 3 + import Toolbar from "/components/Toolbar.astro"; 4 4 5 5 const { backlink } = Astro.props; 6 6 ---
+3 -3
src/pages/404.astro
··· 1 1 --- 2 - import Base from "../components/Base.astro"; 3 - import "../styles/main.css"; 4 - import "../styles/splashscreen.css"; 2 + import Base from "/components/Base.astro"; 3 + import "/styles/main.css"; 4 + import "/styles/splashscreen.css"; 5 5 --- 6 6 7 7 <Base title="404">
+3 -3
src/pages/blog/[slug].astro
··· 1 1 --- 2 2 import { getCollection, render } from "astro:content"; 3 - import Base from "../../components/Base.astro"; 4 - import Toolbar from "../../components/Toolbar.astro"; 5 - import "../../styles/main.css"; 3 + import Base from "/components/Base.astro"; 4 + import Toolbar from "/components/Toolbar.astro"; 5 + import "/styles/main.css"; 6 6 7 7 export async function getStaticPaths() { 8 8 const posts = await getCollection("blog");
+3 -3
src/pages/blog/index.astro
··· 1 1 --- 2 2 import { getCollection } from "astro:content"; 3 - import Base from "../../components/Base.astro"; 4 - import SinglePage from "../../layouts/SinglePage.astro"; 5 - import BlogPost from "../../components/BlogPost.astro"; 3 + import Base from "/components/Base.astro"; 4 + import SinglePage from "/layouts/SinglePage.astro"; 5 + import BlogPost from "/components/BlogPost.astro"; 6 6 7 7 const post = await getCollection("blog").then((x) => 8 8 x.sort(
+5 -5
src/pages/bookmarks.astro
··· 1 1 --- 2 - import Base from "../components/Base.astro"; 3 - import SinglePage from "../layouts/SinglePage.astro"; 4 - import SiteButton from "../components/SiteButton.astro"; 5 - import { buttonwall } from "../content/bookmarks/personalsites.ts"; 6 - import {Content as OtherBookmarks} from '../content/bookmarks/bookmarks.md'; 2 + import Base from "/components/Base.astro"; 3 + import SinglePage from "/layouts/SinglePage.astro"; 4 + import SiteButton from "/components/SiteButton.astro"; 5 + import { buttonwall } from "/content/bookmarks/personalsites.ts"; 6 + import { Content as OtherBookmarks } from "/content/bookmarks/bookmarks.md"; 7 7 --- 8 8 9 9 <Base
+3 -3
src/pages/home.astro
··· 1 1 --- 2 2 import { getCollection } from "astro:content"; 3 - import Base from "../components/Base.astro"; 4 - import BlogPost from "../components/BlogPost.astro"; 5 - import "../styles/main.css"; 3 + import Base from "/components/Base.astro"; 4 + import BlogPost from "/components/BlogPost.astro"; 5 + import "/styles/main.css"; 6 6 7 7 const post = await getCollection("blog").then((x) => 8 8 x.sort(
+3 -3
src/pages/index.astro
··· 1 1 --- 2 - import Base from "../components/Base.astro"; 3 - import "../styles/main.css"; 4 - import "../styles/splashscreen.css"; 2 + import Base from "/components/Base.astro"; 3 + import "/styles/main.css"; 4 + import "/styles/splashscreen.css"; 5 5 --- 6 6 7 7 <Base
+6 -1
tsconfig.json
··· 1 1 { 2 2 "extends": "astro/tsconfigs/strict", 3 3 "include": [".astro/types.d.ts", "**/*"], 4 - "exclude": ["dist"] 4 + "exclude": ["dist"], 5 + "compilerOptions": { 6 + "paths": { 7 + "/*": ["./src/*"] 8 + } 9 + } 5 10 }