From 9fe4480c3981c38ae8e24d0495df957039864a5d Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 13 Jan 2026 17:13:43 +0100 Subject: Remove micro and migrate to use only posts --- src/components/note/Note.astro | 86 ------------------------------------------ 1 file changed, 86 deletions(-) delete mode 100644 src/components/note/Note.astro (limited to 'src/components/note/Note.astro') diff --git a/src/components/note/Note.astro b/src/components/note/Note.astro deleted file mode 100644 index 920cbc1..0000000 --- a/src/components/note/Note.astro +++ /dev/null @@ -1,86 +0,0 @@ ---- -import { type CollectionEntry, render } from "astro:content"; -import type { HTMLTag, Polymorphic } from "astro/types"; -import FormattedDate from "@/components/FormattedDate.astro"; - -type Props = Polymorphic<{ as: Tag }> & { - note: CollectionEntry<"micro">; - isPreview?: boolean | undefined; -}; - -const { as: Tag = "div", note, isPreview = false } = Astro.props; -const { Content } = await render(note); ---- - -
- - { - isPreview ? ( - - {note.data.title} - - ) : ( - <>{note.data.title} - ) - } - - -
- - { - !isPreview && note.data.attachments && note.data.attachments.length > 0 && ( -
- {note.data.attachments.map((attachment: { type: string; url: string; alt?: string }) => ( - - {attachment.alt - - ))} -
- ) - } - { - !isPreview && note.data.sourceUrl && ( - <> -
-

- - View original post → - -

- - ) - } -
-
-- cgit v1.2.3