Skip to content

Instantly share code, notes, and snippets.

@lwhsu
Last active January 10, 2023 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lwhsu/ab2b9cefb8e22c75e7b189f4d5356022 to your computer and use it in GitHub Desktop.
Save lwhsu/ab2b9cefb8e22c75e7b189f4d5356022 to your computer and use it in GitHub Desktop.
diff --git a/website/themes/beastie/layouts/partials/sidenav.html b/website/themes/beastie/layouts/partials/sidenav.html
index 4981c10c83..aa9e11b992 100644
--- a/website/themes/beastie/layouts/partials/sidenav.html
+++ b/website/themes/beastie/layouts/partials/sidenav.html
@@ -62,15 +62,25 @@
<a href={{ "releases" | absLangURL }}>{{ i18n "releases" }}</a>
<ul>
<li>{{ i18n "productionRelease" }}: <br /><a href={{ index .data.releases "u-rel123-announce" }}>{{ index .data.releases "rel123-current" }}</a></li>
+ <li>{{ i18n "productionRelease" }}: <br /><a href={{ index .data.releases "u-rel124-announce" }}>{{ index .data.releases "rel124-current" }}</a></li>
<li>{{ i18n "productionRelease" }}: <br /><a href={{ index .data.releases "u-rel131-announce" }}>{{ index .data.releases "rel131-current" }}</a></li>
</ul>
</li>
<li>
<a href={{ "snapshots" | absLangURL }}>{{ i18n "snapshotReleases" }}</a>
<ul>
+ {{ $betaUpcoming := index $.Site.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 $.Site.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>
- <li>{{ i18n "upcomingRelease" }}:<br /><a href={{ index .data.releases "u-betarel3-schedule" }}>{{ index .data.releases "betarel3-current" }}</a></li>
+ {{ end }}
+ {{ $beta3Upcoming := index $.Site.Data.releases "beta3-upcoming" }}
+ {{ if ne $beta3Upcoming "IGNORE" }}
+ <li>{{ i18n "upcomingRelease" }}:<br /><a href={{ index .data.releases "u-betarel3-schedule" }}>{{ index $.Site.Data.releases "betarel3-current" }}</a></li>
+ {{ end }}
</ul>
</li>
<li><a href={{ "ports" | absLangURL }}>{{ i18n "portedApplications" }}</a></li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment