Skip to content

Commit

Permalink
Link to Release Notes from Download Page
Browse files Browse the repository at this point in the history
We want to show the latest version and link to release notes from the
download page.

Fixes #242
  • Loading branch information
mkasberg authored and BrandonRomano committed Jan 7, 2025
1 parent 2565fe5 commit fac8506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/pages/download/DownloadPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
font-size: 38px;
margin-bottom: 48px;
}

& > div {
font-size: 16px;
}
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/pages/download/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default function DownloadPage({
<SectionWrapper>
<div className={s.header}>
<Image src={SVGIMG} alt={""} />
<H1 className={s.pageTitle}>Download Ghostty</H1>
<div className={s.pageTitle}>
<H1>Download Ghostty</H1>
<div><b>{ latestVersion }</b> (<a href={ "/docs/install/release-notes/" + latestVersion.replace(/\./g, "-") }>Release Notes</a>)</div>
</div>
</div>
<div className={s.downloadCards}>
<GenericCard
Expand Down

0 comments on commit fac8506

Please sign in to comment.