diff --git a/themes/tegakituesday.com/layouts/shortcodes/current.html b/themes/tegakituesday.com/layouts/shortcodes/current.html index 77eb9b0..3955598 100644 --- a/themes/tegakituesday.com/layouts/shortcodes/current.html +++ b/themes/tegakituesday.com/layouts/shortcodes/current.html @@ -1,8 +1,8 @@ -{{ $scratch := newScratch }} -{{ $scratch.Set "current" 0 }} -{{ range.Site.RegularPages }} - {{ if gt (int .File.TranslationBaseName) ($scratch.Get "current") }} - {{ $scratch.Set "current" (int .File.TranslationBaseName) }} - {{ end }} -{{ end }} -{{ $scratch.Get "current" }} \ No newline at end of file +{{- $scratch := newScratch -}} +{{- $scratch.Set "current" 0 -}} +{{- range.Site.RegularPages -}} + {{- if gt (int .File.TranslationBaseName) ($scratch.Get "current") -}} + {{- $scratch.Set "current" (int .File.TranslationBaseName) -}} + {{- end -}} +{{- end -}} +{{- $scratch.Get "current" -}} \ No newline at end of file