{{ $class := .Class }} {{ $context := .Context }} {{ $pageLang := $context.Lang }} {{ $base:= urls.Parse site.BaseURL }} {{ $siteLanguages := site.Home.AllTranslations }} {{ $pageLink := replace (replace $context.RelPermalink (add $pageLang "/") "") $base.Path "/" }} {{ if $context.IsTranslated }} {{ end }}