this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move content to ./content

+7 -7
+1 -1
src/components/blog/Post.astro
··· 17 17 if (!data.image) return; 18 18 const img = data.image.match(/.*(?=\.png)/gm); 19 19 if (img === null) return; 20 - return await import(`../../posts/assets/${img[0]}.png`).then( 20 + return await import(`../../content/posts/assets/${img[0]}.png`).then( 21 21 (x) => x.default 22 22 ); 23 23 })();
+1 -1
src/components/generic/Nav.astro
··· 1 1 --- 2 - import type { nav } from "@/content.config"; 2 + import type { nav } from "@/content/config"; 3 3 import NavEntry from "./NavEntry.astro"; 4 4 import Hamburger from "@/assets/hamburger.svg"; 5 5 import X from "@/assets/x.svg";
+1 -1
src/components/generic/NavEntry.astro
··· 1 1 --- 2 - import type { nav } from "@/content.config"; 2 + import type { nav } from "@/content/config"; 3 3 4 4 interface Props { 5 5 data: nav[];
+3 -3
src/content.config.ts src/content/config.ts
··· 2 2 import { file, glob } from "astro/loaders"; 3 3 4 4 const blog = defineCollection({ 5 - loader: glob({ pattern: "**/*.md", base: "./src/posts" }), 5 + loader: glob({ pattern: "**/*.md", base: "./src/content/posts" }), 6 6 schema: z.object({ 7 7 title: z.string(), 8 8 date: z.date(), ··· 22 22 }); 23 23 24 24 const blogMdx = defineCollection({ 25 - loader: glob({ pattern: "**/*.mdx", base: "./src/posts" }), 25 + loader: glob({ pattern: "**/*.mdx", base: "./src/content/posts" }), 26 26 schema: z.object({ 27 27 title: z.string(), 28 28 }), ··· 42 42 }); 43 43 44 44 const nav = defineCollection({ 45 - loader: file("src/navList.json"), 45 + loader: file("src/content/navList.json"), 46 46 schema: navSchema, 47 47 }); 48 48
+1
src/content/posts
··· 1 + ../../posts
src/navList.json src/content/navList.json
-1
src/posts
··· 1 - ../posts