diff --git a/web/layouts/shortcodes/dataFile.html b/web/layouts/shortcodes/dataFile.html index 23e7a3a4596..19320fce93a 100644 --- a/web/layouts/shortcodes/dataFile.html +++ b/web/layouts/shortcodes/dataFile.html @@ -2,9 +2,9 @@ {{- $map := split . "." }} {{- $url := index $.Site.Data $map -}} {{- if $url -}} - {# Second parameter allows to get a version component, starting with index 1 #} + {{/*% Second parameter allows to get a version component, starting with index 1 % */}} {{- with $.Get 1 -}} - {# Start with index 1, subtract 1 to get zero-based index #} + {{/*% Start with index 1, subtract 1 to get zero-based index % */}} {{- $index := math.Sub . 1 -}} {{- $version_comps := split $url "." -}} {{- $url = index $version_comps $index -}}