We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2a0a44 + c8ed849 commit 8d2b9faCopy full SHA for 8d2b9fa
scripts/build.sh
@@ -98,7 +98,12 @@ for branch in "${VERSION_BRANCHES[@]}"; do
98
if [[ "$branch" =~ ^release/ ]]; then
99
VERSION=$(echo "$branch" | sed 's|release/||')
100
VERSION_TITLE="$VERSION"
101
- VERSION_URL="/$VERSION/"
+ # First entry always has URL "/" regardless of version
102
+ if [ "$FIRST" = true ]; then
103
+ VERSION_URL="/"
104
+ else
105
+ VERSION_URL="/$VERSION/"
106
+ fi
107
else
108
VERSION="main"
109
VERSION_TITLE="Latest (main)"
themes/hugo-docs/layouts/partials/version-selector.html
@@ -278,5 +278,4 @@
278
// Load versions on page load
279
loadVersions();
280
})();
281
- </script>
282
</script>
0 commit comments