Skip to content

Commit

Permalink
Fix latest version on downloads/docs pages (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst committed Sep 13, 2023
1 parent e610d43 commit aa5642e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/keycloak/webbuilder/Versions.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ public Versions(File versionsDir, JsonParser json) {
}

public Version getLatest() {
return get(1);
}

public Version getPrevious() {
return getMajorMinor().get(1);
return get(0);
}

public List<Version> getMajorMinor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public void init(Context context) {
globalAttributes.put("extensions", context.extensions());

globalAttributes.put("version", context.versions().getLatest());
globalAttributes.put("versionPrevious", context.versions().getPrevious());

globalAttributes.put("news", context.news());
globalAttributes.put("blogs", context.blogs());
Expand Down

0 comments on commit aa5642e

Please sign in to comment.