{{ $context := .Context }} {{ $class := .Class }} {{ $base := site.BaseURL }} {{ $url := replace $context.Permalink ( printf "%s" $base) "" }} {{ $lang := $context.Lang }} {{ $.Scratch.Add "path" $base }}