From 9ff236d881a49ef8dba61ee209346dd9f1309499 Mon Sep 17 00:00:00 2001 From: Logic Kenzie Date: Mon, 25 Sep 2023 08:13:51 -0500 Subject: [PATCH] Adjust the site for proper submodule utilization --- package.json | 4 ++-- src/pages/about.astro | 2 +- src/pages/blog.astro | 4 ++-- src/pages/index.astro | 2 +- src/pages/projects.astro | 4 ++-- tsconfig.json | 3 +++ 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 5c3830e..ad4eaad 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "type": "module", "version": "0.0.1", "scripts": { - "dev": "astro dev", + "dev": "NODE_PATH=. astro dev", "start": "astro dev", - "build": "astro build", + "build": "NODE_PATH=. astro build", "preview": "astro preview", "astro": "astro" }, diff --git a/src/pages/about.astro b/src/pages/about.astro index 4292751..8fd97e3 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -1,5 +1,5 @@ --- -import Layout from "../layouts/primary.astro" +import Layout from "layouts/primary.astro" ---

Hi there!

diff --git a/src/pages/blog.astro b/src/pages/blog.astro index faa3383..d17b843 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -1,6 +1,6 @@ --- -import Layout from "../layouts/primary.astro" -import BlogPost from "../components/blogpost.astro" +import Layout from "layouts/primary.astro" +import BlogPost from "components/blogpost.astro" const allPosts = await Astro.glob('../pages/blog/*.md'); --- diff --git a/src/pages/index.astro b/src/pages/index.astro index 92be02f..55e8fdf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,5 +1,5 @@ --- -import Layout from "../layouts/primary.astro" +import Layout from "layouts/primary.astro" ---

Welcome to ~LogicallyLogi~

diff --git a/src/pages/projects.astro b/src/pages/projects.astro index 94ec95a..04ce8fe 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -1,6 +1,6 @@ --- -import Layout from "../layouts/primary.astro" -import ProjectDisplay from "../components/projectdisplay.astro"; +import Layout from "layouts/primary.astro" +import ProjectDisplay from "components/projectdisplay.astro"; const projects = await Astro.glob('../pages/projects/*.md'); --- diff --git a/tsconfig.json b/tsconfig.json index 3fd7ae6..c6dad35 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,6 @@ { + "compilerOptions": { + "baseUrl": "src" + }, "extends": "astro/tsconfigs/strictest" } \ No newline at end of file