{{ $current := int (replaceRE `[^0-9]` "" .File) }}
{{ $scratch := newScratch }}
{{ $latest := int (index .Site.RegularPages 0).File.TranslationBaseName }}
{{ $scratch.Set "isLatest" (eq $current $latest) }}
{{ if ne $current 1 }}
#{{ sub $current 1 }}
{{ end }}
{{ if not ($scratch.Get "isLatest") }}
#{{ add $current 1 }}
{{ end }}