From 4fdf961e0650b810e5052cc6966c5cfabdb5003a Mon Sep 17 00:00:00 2001 From: zepp Date: Mon, 3 Mar 2025 04:13:23 -0500 Subject: [PATCH] category creation work create markdown pages for current and future content populate frontmatter create component for listing pages in category test functionality for automatically finding and listing markdown posts for each category with their respective frontmatter --- src/components/CategoryPage.astro | 5 +++++ src/pages/life/interests/entries/music.md | 6 ++++++ src/pages/life/interests/entries/photography.md | 6 ++++++ src/pages/life/interests/entries/technology.md | 6 ++++++ src/pages/life/interests/index.astro | 10 +++++++--- src/pages/life/self/entries/goals.md | 6 ++++++ src/pages/life/self/entries/pets.md | 6 ++++++ src/pages/life/self/entries/picrew.md | 6 ++++++ src/pages/life/self/entries/todo.md | 6 ++++++ src/pages/life/self/index.astro | 10 +++++++--- src/pages/life/sunshine/entries/journalling.md | 6 ++++++ src/pages/life/sunshine/entries/positive-traits.md | 6 ++++++ src/pages/life/sunshine/index.astro | 9 ++++++--- 13 files changed, 79 insertions(+), 9 deletions(-) create mode 100644 src/components/CategoryPage.astro create mode 100644 src/pages/life/interests/entries/music.md create mode 100644 src/pages/life/interests/entries/photography.md create mode 100644 src/pages/life/interests/entries/technology.md create mode 100644 src/pages/life/self/entries/goals.md create mode 100644 src/pages/life/self/entries/pets.md create mode 100644 src/pages/life/self/entries/picrew.md create mode 100644 src/pages/life/self/entries/todo.md create mode 100644 src/pages/life/sunshine/entries/journalling.md create mode 100644 src/pages/life/sunshine/entries/positive-traits.md diff --git a/src/components/CategoryPage.astro b/src/components/CategoryPage.astro new file mode 100644 index 0000000..36520bd --- /dev/null +++ b/src/components/CategoryPage.astro @@ -0,0 +1,5 @@ +--- +const { url, title, description } = Astro.props; +--- + +
  • {title}

    {description}

  • \ No newline at end of file diff --git a/src/pages/life/interests/entries/music.md b/src/pages/life/interests/entries/music.md new file mode 100644 index 0000000..869833e --- /dev/null +++ b/src/pages/life/interests/entries/music.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: musically emma +description: "music has been a fixture of my life since a child. both listening to it and playing it. read about my journey through my life in regards to music, and my relationship with making music that i had at one point in my life" +--- diff --git a/src/pages/life/interests/entries/photography.md b/src/pages/life/interests/entries/photography.md new file mode 100644 index 0000000..0de0e7e --- /dev/null +++ b/src/pages/life/interests/entries/photography.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: photographically emma +description: "an intense interest of mine throughout my early and teenage years was photography. you can read about it, and see some of my photos. i hope to revisit this interest soon!" +--- diff --git a/src/pages/life/interests/entries/technology.md b/src/pages/life/interests/entries/technology.md new file mode 100644 index 0000000..b42670c --- /dev/null +++ b/src/pages/life/interests/entries/technology.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: technically emma +description: "technology was an interest that could always feed my young mind. i was fascinated by it. always driven to learn something new about it. i'd find a career in tech, that would lead to more discoveries about myself. technology will always be a love of mine <3" +--- diff --git a/src/pages/life/interests/index.astro b/src/pages/life/interests/index.astro index 99b7147..e11a936 100644 --- a/src/pages/life/interests/index.astro +++ b/src/pages/life/interests/index.astro @@ -1,8 +1,10 @@ --- import BasicLayout from "../../../layouts/BasicLayout.astro"; -const pageTitle = "emma's interests - category" +import CategoryPage from "../../../components/CategoryPage.astro"; -const allPosts = Object.values(import.meta.glob('./entires/*.md', {eager: true})); +const pageTitle = "emma's interests - category"; + +const allPosts = Object.values(import.meta.glob('./entries/*.md', {eager: true})); --- @@ -16,7 +18,9 @@ const allPosts = Object.values(import.meta.glob('./entires/*.md', {eager: true})

    {pageTitle}

    - +
    \ No newline at end of file diff --git a/src/pages/life/self/entries/goals.md b/src/pages/life/self/entries/goals.md new file mode 100644 index 0000000..9de9c67 --- /dev/null +++ b/src/pages/life/self/entries/goals.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: emma's goals +description: "a list of goals i have in mind that i would like to accomplish. there's no particular timeframe. the only thing i would like is to complete them sooner rather than later" +--- diff --git a/src/pages/life/self/entries/pets.md b/src/pages/life/self/entries/pets.md new file mode 100644 index 0000000..8ca6c8d --- /dev/null +++ b/src/pages/life/self/entries/pets.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: emma's pets +description: "i've had pets all throughout my life. they are a core part of who i am. i've learn so much about animals and myself in the process. you can read about some of them here" +--- diff --git a/src/pages/life/self/entries/picrew.md b/src/pages/life/self/entries/picrew.md new file mode 100644 index 0000000..cf21d24 --- /dev/null +++ b/src/pages/life/self/entries/picrew.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: emma's picrews +description: "i've used picrew as a means to express myself in terms of outwards appearance. it has helped me better understand how i see myself. i'd like to share them" +--- diff --git a/src/pages/life/self/entries/todo.md b/src/pages/life/self/entries/todo.md new file mode 100644 index 0000000..d3ee486 --- /dev/null +++ b/src/pages/life/self/entries/todo.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: emma's things to do +description: "a list of things i'm interested in doing that you can to. resources to do them are provided. mostly related to web development for the time being" +--- diff --git a/src/pages/life/self/index.astro b/src/pages/life/self/index.astro index 5228d1d..75ed78c 100644 --- a/src/pages/life/self/index.astro +++ b/src/pages/life/self/index.astro @@ -1,8 +1,10 @@ --- import BasicLayout from "../../../layouts/BasicLayout.astro"; -const pageTitle = "emma's self - category" +import CategoryPage from "../../../components/CategoryPage.astro"; +const pageTitle = "emma's self - category"; + +const allPosts = Object.values(import.meta.glob('./entries/*.md', {eager: true})); -const allPosts = Object.values(import.meta.glob('./entires/*.md', {eager: true})); --- @@ -16,7 +18,9 @@ const allPosts = Object.values(import.meta.glob('./entires/*.md', {eager: true})

    {pageTitle}

    - +
    \ No newline at end of file diff --git a/src/pages/life/sunshine/entries/journalling.md b/src/pages/life/sunshine/entries/journalling.md new file mode 100644 index 0000000..b295b9c --- /dev/null +++ b/src/pages/life/sunshine/entries/journalling.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: check out my journal +description: "no, not literally :p i want to share with you why journalling means so much to me, from why i write in a journal, the pens i use, and the journal itself" +--- diff --git a/src/pages/life/sunshine/entries/positive-traits.md b/src/pages/life/sunshine/entries/positive-traits.md new file mode 100644 index 0000000..d9c8930 --- /dev/null +++ b/src/pages/life/sunshine/entries/positive-traits.md @@ -0,0 +1,6 @@ +--- +layout: ../../../../layouts/MarkdownLayout.astro + +title: a list of positive traits +description: "this list of positive traits was shared with me by my therapist. i find them to be useful writing prompts for my journal entries sometimes. it can be nice to just give ourselves a pat on the back sometimes. we all could genuinely use more of those <3" +--- diff --git a/src/pages/life/sunshine/index.astro b/src/pages/life/sunshine/index.astro index fe3702f..a0e9cf4 100644 --- a/src/pages/life/sunshine/index.astro +++ b/src/pages/life/sunshine/index.astro @@ -1,8 +1,9 @@ --- import BasicLayout from "../../../layouts/BasicLayout.astro"; -const pageTitle = "emma's rays of sunshine - category" +import CategoryPage from "../../../components/CategoryPage.astro"; +const pageTitle = "emma's rays of sunshine - category"; -const allPosts = Object.values(import.meta.glob('./entires/*.md', {eager: true})); +const allPosts = Object.values(import.meta.glob('./entries/*.md', {eager: true})); --- @@ -16,7 +17,9 @@ const allPosts = Object.values(import.meta.glob('./entires/*.md', {eager: true})

    {pageTitle}

    - +
    \ No newline at end of file