{{ $filePath := replace .File.Path "\\" "/" }} {{ $contentPath := "null"}} {{ if (eq .Site.Params.repoHost "GitHub")}} {{ $contentPath = print .Site.Params.docsRepo "/blob/" .Site.Params.docsRepoBranch "/content/" }} {{ end }} {{ if (eq .Site.Params.repoHost "Gitea")}} {{ $contentPath = print .Site.Params.docsRepo "/_edit/" .Site.Params.docsRepoBranch "/content/" }} {{ end }} {{ $url := print $contentPath $filePath }} {{ if .Site.Params.options.multilingualMode }} {{ $url = print $contentPath .Lang "/" $filePath }} {{ end }}