From 7bc7a8919a3a939c260d9ecaee61b8bc5dc01b3f Mon Sep 17 00:00:00 2001 From: Angel Wang Date: Sat, 10 Oct 2026 11:41:49 -0400 Subject: [PATCH] feat: rename and split journal --- .gitignore | 2 +- content/about.mdx | 2 +- .../easier-to-love-you.mdx | 0 content/{journal => logbook}/your-name-is.mdx | 0 src/content.config.ts | 6 +-- src/layouts/post.astro | 4 +- src/pages/bulletin/index.astro | 27 +++++++++++ src/pages/index.astro | 7 ++- src/pages/{journal => logbook}/[id].astro | 8 ++-- src/pages/{journal => logbook}/index.astro | 12 ++--- src/pages/now.astro | 2 +- src/pages/projects.astro | 2 +- src/pages/sticker-book.astro | 0 src/styles/bulletin.scss | 17 +++++++ src/styles/components/header.scss | 2 +- src/styles/{journal.scss => logbook.scss} | 0 src/styles/projects.scss | 48 ++----------------- 17 files changed, 72 insertions(+), 67 deletions(-) rename content/{journal => logbook}/easier-to-love-you.mdx (100%) rename content/{journal => logbook}/your-name-is.mdx (100%) create mode 100644 src/pages/bulletin/index.astro rename src/pages/{journal => logbook}/[id].astro (91%) rename src/pages/{journal => logbook}/index.astro (81%) create mode 100644 src/pages/sticker-book.astro create mode 100644 src/styles/bulletin.scss rename src/styles/{journal.scss => logbook.scss} (100%) diff --git a/.gitignore b/.gitignore index 74d2a53..20309cc 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ pnpm-debug.log* .vscode/ # angel's test journal file -content/journal/test.mdx +content/logbook/test.mdx # Local Netlify folder .netlify diff --git a/content/about.mdx b/content/about.mdx index 96f5153..8368e69 100644 --- a/content/about.mdx +++ b/content/about.mdx @@ -16,7 +16,7 @@ worth noting someday. ### I write poetry -The cringiest of the cringe. You can find most of it [here](/journal); an +The cringiest of the cringe. [You can find most of it here](/logbook); an ongoing archival attempt is in progress. ### I do a bunch of other things on an extremely erratic basis diff --git a/content/journal/easier-to-love-you.mdx b/content/logbook/easier-to-love-you.mdx similarity index 100% rename from content/journal/easier-to-love-you.mdx rename to content/logbook/easier-to-love-you.mdx diff --git a/content/journal/your-name-is.mdx b/content/logbook/your-name-is.mdx similarity index 100% rename from content/journal/your-name-is.mdx rename to content/logbook/your-name-is.mdx diff --git a/src/content.config.ts b/src/content.config.ts index 2694243..eff1a13 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -3,8 +3,8 @@ import { glob } from "astro/loaders"; import { z } from "astro/zod"; import { Temporal } from "temporal-polyfill"; -const journal = defineCollection({ - loader: glob({ base: "./content/journal", pattern: "**/*.{md,mdx}" }), +const logbook = defineCollection({ + loader: glob({ base: "./content/logbook", pattern: "**/*.{md,mdx}" }), schema: z.object({ title: z.string(), description: z.string(), @@ -14,4 +14,4 @@ const journal = defineCollection({ }), }) -export const collections = { journal } +export const collections = { logbook } diff --git a/src/layouts/post.astro b/src/layouts/post.astro index 10ee068..600d1e4 100644 --- a/src/layouts/post.astro +++ b/src/layouts/post.astro @@ -21,7 +21,7 @@ const frontmatter = Astro.props.frontmatter as Frontmatter - {frontmatter.title} · a journal by angelcube + {frontmatter.title} · a log by angelcube @@ -34,7 +34,7 @@ const frontmatter = Astro.props.frontmatter as Frontmatter
diff --git a/src/pages/bulletin/index.astro b/src/pages/bulletin/index.astro new file mode 100644 index 0000000..1826ec8 --- /dev/null +++ b/src/pages/bulletin/index.astro @@ -0,0 +1,27 @@ +--- +import "../../styles/bulletin.scss" +import Header from "../../components/Header.astro"; +--- + + + + + + + + bulletin · angelcube + + + + + + + +
+
+
+

...Coming soon!

+
+
+ + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 2d1f47f..d8f0e22 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,6 @@ --- -import NowPlaying from "../components/preact/NowPlaying"; import "../styles/index.scss" +import NowPlaying from "../components/preact/NowPlaying"; --- @@ -34,7 +34,10 @@ import "../styles/index.scss"