{{- $ctx := "" -}} {{- $dir := default "down" -}} {{- if (reflect.IsMap . ) -}} {{- $ctx = .ctx -}} {{- $dir = cond (not .dir) nil .dir -}} {{- else -}} {{- $ctx = . -}} {{- end -}} {{ with page }} {{ if .IsTranslated }} {{ $currentLang := .Page.Lang }} {{ if site.IsMultiLingual }}