From 9b961abd7c4bba6f7b0b1759dbf2d1eca92a606e Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Wed, 17 Jan 2024 19:12:15 -0800 Subject: [PATCH] fixes viewtransitions and header issues --- src/components/BaseHead.astro | 86 -------------------------------- src/components/PostPreview.astro | 2 +- src/layouts/default.astro | 79 ++++++++++++++++++++++++++--- 3 files changed, 74 insertions(+), 93 deletions(-) delete mode 100644 src/components/BaseHead.astro 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 && } + + + + + +