journal →
- {posts.map((post: any) =>writings
+-
+ {writings.map((post: any) =>
- {post.frontmatter.title} )} +
ramblings
+-
+ {ramblings.map((post: any) =>
- {post.frontmatter.title} )} +
diff --git a/src/pages/journal/easier-to-love-you.mdx b/src/pages/journal/easier-to-love-you.mdx new file mode 100644 index 0000000..0f49ff9 --- /dev/null +++ b/src/pages/journal/easier-to-love-you.mdx @@ -0,0 +1,29 @@ +--- +layout: ../../layouts/post.astro +title: "easier to love you" +written_date: "2026-05-07" +updated_date: "2026-07-22" +description: "wait," +type: "Writings" +--- + +``` +&&&&&&&&&&&&&&&&&&&&&&&&&& (hello?) +&&&&&& wait, +&&& don't hang up yet— +I'm still writing these broken melodies &&&&&&&&&& +&&&&&&&& dedicated to you, like +&&&&& fractured seaglass bent the rays of the sun— +&& and I know it's stupid, but +don't apologize, I've heard enough && +&&&&&&&&& can't we stay like this a little longer? + I wanted to show you that the sunrises are beautiful, +&&& even though I know you prefer the midnight moon— +& we'll still be best friends no matter what happens. +&&&&&&& don't leave me for some fickle darkness, and +&& &&&&& &&&&& as long as I can hold your hand &&&&&& +&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& I will— +``` + +\ +Originally written for a dear friend's birthday. diff --git a/src/pages/journal/index.astro b/src/pages/journal/index.astro index 4b17072..b94534b 100644 --- a/src/pages/journal/index.astro +++ b/src/pages/journal/index.astro @@ -1,7 +1,27 @@ --- import "../../styles/journal.scss" +import { Temporal } from "temporal-polyfill" + +type PostType = "Ramblings" | "Writings" + const posts = Object.values(import.meta.glob('./*.mdx', { eager: true })); + + +// TODO: do this better but I'm too lazy to +const writings = posts.filter((post: any) => post.frontmatter.type === "Writings").sort((a: any, b: any) => { + const date1 = Temporal.PlainDate.from(a.frontmatter.written_date) + const date2 = Temporal.PlainDate.from(b.frontmatter.written_date) + + return Temporal.PlainDate.compare(date2, date1) +}) + +const ramblings = posts.filter((post: any) => post.frontmatter.type === "Ramblings").sort((a: any, b: any) => { + const date1 = Temporal.PlainDate.from(a.frontmatter.written_date) + const date2 = Temporal.PlainDate.from(b.frontmatter.written_date) + + return Temporal.PlainDate.compare(date2, date1) +}) --- @@ -21,7 +41,14 @@ const posts = Object.values(import.meta.glob('./*.mdx', { eager: true }));