From ea46ad57dd58603bccbe7eef2a725a9b6ed894f3 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 1 Mar 2024 21:58:30 +0100 Subject: [PATCH] use ViewTransitions Hero --- src/components/PostComponent.astro | 6 +++--- src/pages/announcements/[...slug].astro | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/PostComponent.astro b/src/components/PostComponent.astro index 5deaa5d..49e5f8f 100644 --- a/src/components/PostComponent.astro +++ b/src/components/PostComponent.astro @@ -18,19 +18,19 @@ const { post } = Astro.props as Props; {post.data.image != null ? (
- Post Image + Post Image
) : null}
-

{post.data.title}

+

{post.data.title}

{Intl.DateTimeFormat(astroI18n.locale, { day: "numeric", month: "long", year: "numeric", }).format(post.data.created)}

{post.data.description}

-
+
{post.data.tags.map((tag) => ( ))} diff --git a/src/pages/announcements/[...slug].astro b/src/pages/announcements/[...slug].astro index 28c5ef0..b02d148 100644 --- a/src/pages/announcements/[...slug].astro +++ b/src/pages/announcements/[...slug].astro @@ -71,17 +71,19 @@ const ogImage = await getImage({
{post.data.image && (
-
)}
-

{post.data.title}

+

{post.data.title}

- {post.data.tags.map(tag => ( - - ))} +
+ {post.data.tags.map(tag => ( + + ))} +
{Intl.DateTimeFormat(astroI18n.locale, { day: "numeric",