From 0ec73d400d33b418dddeb154ae5c77d6bdeb6625 Mon Sep 17 00:00:00 2001
From: Filip Hrisafov
Date: Mon, 12 Aug 2024 23:20:24 +0200
Subject: [PATCH] Fix incorrect links for reference documentation
---
layouts/releases/single.html | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/layouts/releases/single.html b/layouts/releases/single.html
index dae7a7340..4c4ab3e5f 100644
--- a/layouts/releases/single.html
+++ b/layouts/releases/single.html
@@ -17,9 +17,15 @@ {{ .Title }}
({{ time.Format "January" .releaseDate }} {{ humanize .releaseDate.Day }} {{ .releaseDate.Year }}{{ if eq $.Site.Params.stableVersion .name }}; latest stable release{{ else if eq $.Site.Params.devVersion .name }}; latest beta release{{ end }})
+ {{ $versionRef := .versionRef }}
+ {{ if eq .order 500 }}
+ {{ $versionRef = "stable" }}
+ {{ else if eq .order 1000 }}
+ {{ $versionRef = "dev" }}
+ {{ end }}
- Reference guide:
- HTML
- {{ if not .spring }}| PDF{{ end }}
+ HTML
+ {{ if not .spring }}| PDF{{ end }}
-
API documentation:
@@ -27,12 +33,8 @@
{{ .Title }}
Annotations JavaDoc |
Extensions JavaDoc |
Test Extensions JavaDoc
- {{ else if .stable }}
- JavaDoc
- {{ else if .dev }}
- JavaDoc
{{ else }}
- JavaDoc
+ JavaDoc
{{ end }}
{{ if .migrationNotesLink }}