diff options
| author | IwanIDev <iwan@iwani.dev> | 2026-03-27 15:43:45 +0000 |
|---|---|---|
| committer | IwanIDev <iwan@iwani.dev> | 2026-03-27 15:43:45 +0000 |
| commit | ccee6e58c24c2512020dcc2cd15eeddb987ef4e3 (patch) | |
| tree | c031936683feb47cc1ec0f45d97e81f46b26f72b | |
| parent | 0a00baeefb231db6e6908d921b272acd5079c2fb (diff) | |
refactor: Moved openring into blog pages rather than homepage
That was where I initially meant for it to go, I'm not really sure why I
put it on the home page instead.
| -rw-r--r-- | src/pages/index.astro | 1 | ||||
| -rw-r--r-- | src/pages/posts/[...slug].astro | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro index af26414..5a3c639 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -9,7 +9,6 @@ import HomePageHeader from "@/components/HomePageHeader.astro" <main class="mx-auto flex w-full max-w-3xl flex-col gap-8 p-4 md:p-6"> <HomePageHeader /> <BlogPosts /> - <OpenRing /> </main> </Layout> diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index b68f153..b8e75a2 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -3,6 +3,7 @@ import { getCollection, type CollectionEntry } from "astro:content"; import Layout from "@/layouts/main.astro"; import { buttonVariants } from "@/components/ui/button"; import PostHeader from "@/components/PostHeader.astro"; +import OpenRing from "@/components/OpenRing.astro"; export async function getStaticPaths() { const posts = await getCollection("blog"); @@ -21,7 +22,7 @@ const { post } = Astro.props as Props; const { Content } = await post.render(); --- -<Layout title={`${post.data.title} | Iwan Ingman's Blog`} description={post.data.description}> +<Layout title={`${post.data.title} | Iwan Ingman's Blog`} description={post.data.description}> <main class="mx-auto flex w-full max-w-3xl flex-col gap-8 p-4 md:p-6"> <PostHeader title={post.data.title} @@ -38,5 +39,6 @@ const { Content } = await post.render(); <div> <a class={buttonVariants({ size: "xs", variant: "outline" })} href="/">Back to posts</a> </div> + <OpenRing /> </main> </Layout> |
