diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro deleted file mode 100644 index e484bc02..00000000 --- a/src/components/BaseHead.astro +++ /dev/null @@ -1,86 +0,0 @@ ---- -import { AstroFont } from "astro-font"; -import { ViewTransitions } from 'astro:transitions'; -import type { Settings } from "../api"; - -export type Props = { - title: string; - description: string; - permalink?: string; - image?: string; - settings: Settings; -}; - -const { description, permalink, image, settings, title } = Astro.props as Props; ---- - - - - - - -{title} - - -{description && } - - - - - - - - - - - - - -{permalink && } -{description && } -{image && } - - - - -{permalink && } -{description && } -{image && } - - - - - - diff --git a/src/components/PostPreview.astro b/src/components/PostPreview.astro index 57c45a97..6c7149f9 100644 --- a/src/components/PostPreview.astro +++ b/src/components/PostPreview.astro @@ -18,7 +18,7 @@ const { post, settings, index, isHome = false } = Astro.props as Props; isHome && post.feature_image && index == 0 ? "post-card-large" : "" }`} > - + - + + + + {content?.title ? `${content.title} | ${settings.title}` : "" } + + + {content?.description && } + + + + + + + + + + + + + + {permalink && } + {content?.description && } + {image && } + + + + + {permalink && } + {content?.description && } + {image && } + + + + + +