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:
parent
fdd0d260d0
commit
2f2f7dcd3e
1 changed files with 5 additions and 1 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue