docs: add Forgejo release tag link to ISO version badge

Footer now links to https://code.smilepowered.org/clawdie/clawdie-iso/releases/tag/v0.XX.0
when built with ASTRO_ISO_VERSION set.
This commit is contained in:
Sam & Claude 2026-06-23 12:05:35 +02:00
parent fdd0d260d0
commit 2f2f7dcd3e

View file

@ -24,7 +24,11 @@ const Arch = archEntry ? (await render(archEntry)).Content : null;
const Cta = ctaEntry ? (await render(ctaEntry)).Content : null;
// Only set during ISO builds — shows the exact image version the docs were built against.
// Links to the matching Forgejo release tag.
const isoVersion = import.meta.env.ASTRO_ISO_VERSION || null;
const isoTagUrl = isoVersion
? `https://code.smilepowered.org/clawdie/clawdie-iso/releases/tag/v${isoVersion}`
: null;
---
<header class="hero">
@ -71,7 +75,7 @@ const isoVersion = import.meta.env.ASTRO_ISO_VERSION || null;
{
isoVersion && (
<footer class="iso-version-badge">
<p>Clawdie ISO {isoVersion} — these docs match the image they were built with.</p>
<p>Clawdie ISO {isoVersion} — <a href={isoTagUrl}>release notes</a></p>
</footer>
)
}