X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=build.gradle;h=17aec8855fc9cb707bc0ba3b5c65d8754eb56b86;hp=18af7978ae859799f904ad773c65168285b69451;hb=ff2fd741606ac49562f2cfb2b5b46059191feb35;hpb=5e5545a5a719207cdab4c9b16baf7cd18c16bfba diff --git a/build.gradle b/build.gradle index 18af797..17aec88 100644 --- a/build.gradle +++ b/build.gradle @@ -2463,6 +2463,7 @@ task hugoTemplates { def releaseMdFile = file("${jalviewDir}/${releases_dir}/release-${JALVIEW_VERSION_UNDERSCORES}.md") def whatsnewMdFile = file("${jalviewDir}/${whatsnew_dir}/whatsnew-${JALVIEW_VERSION_UNDERSCORES}.md") def oldJvlFile = file("${jalviewDir}/${hugo_old_jvl}") + def jalviewjsFile = file("${jalviewDir}/${hugo_jalviewjs}") doFirst { // specific release template for version archive @@ -2486,6 +2487,7 @@ task hugoTemplates { } def oldJvl = oldJvlFile.exists() ? oldJvlFile.collect{it} : [] + def jalviewjsLink = jalviewjsFile.exists() ? jalviewjsFile.collect{it} : [] def changesHugo = null if (changes != null) { @@ -2549,6 +2551,7 @@ task hugoTemplates { CHANGES: changesHugo, DATE: givenDate == null ? "" : givenDate.format("yyyy-MM-dd"), DRAFT: givenDate == null ? "true" : "false", + JALVIEWJSLINK: jalviewjsLink.contains(JALVIEW_VERSION) ? "true" : "false", JVL_HEADER: oldJvl.contains(JALVIEW_VERSION) ? "jvl: true" : "" ] )