git: 4e8205b1f1 - main - Get FreeBSD sidenav: Let items of "Snapshot Releases" be tunable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Jan 2023 07:59:11 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/doc/commit/?id=4e8205b1f120fa8f18c0840fa3c159827cd878be
commit 4e8205b1f120fa8f18c0840fa3c159827cd878be
Author: Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2023-01-12 07:46:21 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2023-01-12 07:58:43 +0000
Get FreeBSD sidenav: Let items of "Snapshot Releases" be tunable
Follow the configuration in shared/releases.adoc
Sponsored by: The FreeBSD Foundation
---
website/themes/beastie/layouts/partials/sidenav.html | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/website/themes/beastie/layouts/partials/sidenav.html b/website/themes/beastie/layouts/partials/sidenav.html
index 997fd0212f..9114c4b453 100644
--- a/website/themes/beastie/layouts/partials/sidenav.html
+++ b/website/themes/beastie/layouts/partials/sidenav.html
@@ -69,9 +69,18 @@
<li>
<a href={{ "snapshots" | absLangURL }}>{{ i18n "snapshotReleases" }}</a>
<ul>
+ {{ $betaUpcoming := index .data.releases "beta-upcoming" }}
+ {{ if ne $betaUpcoming "IGNORE" }}
<li>{{ i18n "upcomingRelease" }}:<br /><a href={{ index .data.releases "u-betarel-schedule" }}>{{ index .data.releases "betarel-current" }}</a></li>
+ {{ end }}
+ {{ $beta2Upcoming := index .data.releases "beta2-upcoming" }}
+ {{ if ne $beta2Upcoming "IGNORE" }}
<li>{{ i18n "upcomingRelease" }}:<br /><a href={{ index .data.releases "u-betarel2-schedule" }}>{{ index .data.releases "betarel2-current" }}</a></li>
+ {{ end }}
+ {{ $beta3Upcoming := index .data.releases "beta3-upcoming" }}
+ {{ if ne $beta3Upcoming "IGNORE" }}
<li>{{ i18n "upcomingRelease" }}:<br /><a href={{ index .data.releases "u-betarel3-schedule" }}>{{ index .data.releases "betarel3-current" }}</a></li>
+ {{ end }}
</ul>
</li>
<li><a href={{ "ports" | absLangURL }}>{{ i18n "portedApplications" }}</a></li>