{{ $parts := slice .Site.Params.docsRepo }} {{ $filePath := replace .File.Path "\\" "/" }} {{ if (eq .Site.Params.repoHost "GitHub") }} {{ $parts = $parts | append "blob" .Site.Params.docsRepoBranch }} {{ else if (eq .Site.Params.repoHost "Gitea") }} {{ $parts = $parts | append "_edit" .Site.Params.docsRepoBranch }} {{ else if (eq .Site.Params.repoHost "GitLab") }} {{ $parts = $parts | append "-/blob" .Site.Params.docsRepoBranch }} {{ else if (eq .Site.Params.repoHost "Bitbucket") }} {{ $parts = $parts | append "browse" .Site.Params.docsRepoBranch }} {{ end }} {{ if isset .Site.Params "docsreposubpath" }} {{ if not (eq .Site.Params.docsRepoSubPath "") }} {{ $parts = $parts | append .Site.Params.docsRepoSubPath }} {{ end }} {{ end }} {{ if .Site.Params.options.multilingualMode }} {{ $parts = $parts | append "content" .Lang $filePath }} {{ else }} {{ $parts = $parts | append "content" $filePath }} {{ end }} {{ $url := delimit $parts "/" }}
Edit this page on {{ .Site.Params.repoHost }}