From 270bc93258b217e53883a988e9e2365ab3437007 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Tue, 14 Dec 2021 17:36:09 +0000 Subject: [PATCH] Fix HTML for release-data shortcode --- layouts/shortcodes/release-data.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/layouts/shortcodes/release-data.html b/layouts/shortcodes/release-data.html index e182cb82ae..418f229a9a 100644 --- a/layouts/shortcodes/release-data.html +++ b/layouts/shortcodes/release-data.html @@ -5,20 +5,19 @@
{{ if not $data.previousPatches }} +
-{{ T "latest_release" }}{{ printf "%s.0" $dataVersion }} + {{ T "latest_release" }}{{ printf "%s.0" $dataVersion }}{{ if isset $data "releaseDate" }} {{ T "release_date_before" }}{{ printf "%s" $data.releaseDate }}{{ T "release_date_after" }}{{- end -}}
- {{ T "end_of_life" }}{{ printf "%s" $data.endOfLifeDate }} + {{ T "end_of_life" }}{{ printf "%s" $data.endOfLifeDate }}
{{ T "previous_patches" }} {{ T "not_applicable" }}
-{{ end }} - -{{ if $data.previousPatches }} +{{- else -}}
- {{ T "latest_release" }}{{ index $data.previousPatches 0 "release" }} {{ T "release_date_before" }}{{ index $data.previousPatches 0 "targetDate" }}{{ T "release_date_after" }} + {{ T "latest_release" }}{{ index $data.previousPatches 0 "release" }} {{ T "release_date_before" }}{{ printf "%s" ( index $data.previousPatches 0 "targetDate" ) }}{{ T "release_date_after" }}
{{ T "end_of_life" }}{{ printf "%s" $data.endOfLifeDate }} @@ -30,10 +29,10 @@ {{ if $key }}{{ T "inline_list_separator" }}{{ end }} {{ printf "%s" .release }} {{- end -}} -{{- end -}}
+{{- end -}}

Complete {{ $dataVersion }} Schedule