From 272df87f422c125ff812c5726a59d215b0fb26eb Mon Sep 17 00:00:00 2001 From: skyeto Date: Thu, 4 Jan 2024 14:05:58 +0100 Subject: [PATCH] Added page transitions --- src/layouts/Layout.astro | 4 ++++ src/layouts/Post.astro | 4 ++-- src/pages/index.astro | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index ac830a5..6fb9fce 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,6 @@ --- +import { ViewTransitions } from "astro:transitions"; + export interface Props { title: string; } @@ -38,6 +40,8 @@ const { title, description, pubDate } = Astro.props; + +
diff --git a/src/layouts/Post.astro b/src/layouts/Post.astro index ae4e36f..f186d4e 100644 --- a/src/layouts/Post.astro +++ b/src/layouts/Post.astro @@ -10,9 +10,9 @@ const { frontmatter } = Astro.props; description={frontmatter.description} pubDate={frontmatter.pubDate}> -
+
+

{ frontmatter.title }

published { frontmatter.pubDate.slice(0, 10) }

-

>{ frontmatter.title }

{ frontmatter.description }

diff --git a/src/pages/index.astro b/src/pages/index.astro index 9421bb9..a2d204f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -12,8 +12,8 @@ const posts = await Astro.glob("./p/*.{md,mdx}"); -
-

hi there!

+
+

hi there!

I'm /skaɪ-tuː/. This blog is mostly a rambly collection of posts on different topics.

@@ -31,7 +31,7 @@ const posts = await Astro.glob("./p/*.{md,mdx}");