diff --git a/src/components/GlossaryItem.astro b/src/components/GlossaryItem.astro deleted file mode 100644 index 357610f..0000000 --- a/src/components/GlossaryItem.astro +++ /dev/null @@ -1,19 +0,0 @@ ---- -import type { CollectionEntry } from "astro:content"; -import HorizontalLine from "./horizontalLine.astro"; -interface Props { - item: CollectionEntry<"glossary">; -} - -const { item } = Astro.props; -const { Content } = await item.render(); -const title = item.data.term.replaceAll("-", " "); ---- - -
  • -

    # {title}

    -
    - -
    -
  • - diff --git a/src/components/BlogSideBar.astro b/src/components/blog/BlogSideBar.astro similarity index 96% rename from src/components/BlogSideBar.astro rename to src/components/blog/BlogSideBar.astro index b0932f4..ba93022 100644 --- a/src/components/BlogSideBar.astro +++ b/src/components/blog/BlogSideBar.astro @@ -1,5 +1,5 @@ --- -import { getTags } from "../helpers/getTags"; +import { getTags } from "../../helpers/getTags"; import TagItem from "./TagItem.astro"; const tags = await getTags(); diff --git a/src/components/PostCard.astro b/src/components/blog/PostCard.astro similarity index 100% rename from src/components/PostCard.astro rename to src/components/blog/PostCard.astro diff --git a/src/components/TagItem.astro b/src/components/blog/TagItem.astro similarity index 72% rename from src/components/TagItem.astro rename to src/components/blog/TagItem.astro index fb838e5..60b7f72 100644 --- a/src/components/TagItem.astro +++ b/src/components/blog/TagItem.astro @@ -1,5 +1,5 @@ --- -import { getRandomColor } from "../helpers/colorGenerator"; +import { getRandomColor } from "../../helpers/colorGenerator"; const { tag } = Astro.props; --- diff --git a/src/components/TagList.astro b/src/components/blog/TagList.astro similarity index 55% rename from src/components/TagList.astro rename to src/components/blog/TagList.astro index cf5bc66..518385f 100644 --- a/src/components/TagList.astro +++ b/src/components/blog/TagList.astro @@ -2,19 +2,20 @@ import TagItem from "./TagItem.astro"; type TagItem = { - label: string, - url: string -} + label: string; + url: string; +}; const { tags } = Astro.props; -const mappedTags: TagItem[] = tags.map((tag: string) => ({label: tag, url: `/tags/${tag}`})) +const mappedTags: TagItem[] = tags.map((tag: string) => ({ + label: tag, + url: `/tags/${tag}`, +})); --- \ No newline at end of file + diff --git a/src/pages/work.astro b/src/pages/work.astro index e4e7da8..ab9eaf4 100644 --- a/src/pages/work.astro +++ b/src/pages/work.astro @@ -1,7 +1,7 @@ --- import { getCollection } from "astro:content"; import PageLayout from "../layouts/PageLayout.astro"; -import JobItem from "../components/JobItem.astro"; +import JobItem from "../components/work/JobItem.astro"; const jobs = await getCollection("work"); ---