From 84d9b0e1e2f9065a8b8dd5e8b75f81d5385c3a88 Mon Sep 17 00:00:00 2001 From: Vensin Date: Fri, 13 Nov 2026 10:01:57 +0100 Subject: [PATCH] feat(landing): the release badge comes from the newest release post A post's frontmatter can say release: { version, badge }; the landing page shows the newest published one and links to it. 0.9 and 0.10 say so, so the badge reads v0.10.0 now. --- app/page.tsx | 3 ++- components/landing/hero.tsx | 24 +++++++++++++----------- content/blog/inkan-0-10.mdx | 3 +++ content/blog/inkan-0-9.mdx | 3 +++ lib/source.ts | 6 ++++++ source.config.ts | 2 ++ 6 files changed, 29 insertions(+), 12 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index c499a0b..4ef20aa 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -11,6 +11,7 @@ import { Clips } from "@/components/landing/clips"; import { Bench, Integrations, Start } from "@/components/landing/sections"; import { Hanko } from "@/components/landing/hanko"; import { pageMeta } from "@/lib/site"; +import { latestRelease } from "@/lib/source"; import { app } from "@/server/app"; export const metadata: Metadata = pageMeta({ @@ -37,7 +38,7 @@ export default function Home() {