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