Skip to content

Commit 8d2b9fa

Browse files
Merge branch 'main' into release/v25.0
2 parents a2a0a44 + c8ed849 commit 8d2b9fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ for branch in "${VERSION_BRANCHES[@]}"; do
9898
if [[ "$branch" =~ ^release/ ]]; then
9999
VERSION=$(echo "$branch" | sed 's|release/||')
100100
VERSION_TITLE="$VERSION"
101-
VERSION_URL="/$VERSION/"
101+
# First entry always has URL "/" regardless of version
102+
if [ "$FIRST" = true ]; then
103+
VERSION_URL="/"
104+
else
105+
VERSION_URL="/$VERSION/"
106+
fi
102107
else
103108
VERSION="main"
104109
VERSION_TITLE="Latest (main)"

themes/hugo-docs/layouts/partials/version-selector.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,5 +278,4 @@
278278
// Load versions on page load
279279
loadVersions();
280280
})();
281-
</script>
282281
</script>

0 commit comments

Comments
 (0)