{{ $repoURL := slice .Site.Params.docs.repoURL }} {{ $repoHostname := (urls.Parse (.Site.Params.docs.repoURL)).Hostname }} {{ $filePath := replace .File.Path "\\" "/" }} {{ $iconPath := "" }} {{ if strings.Contains ($repoHostname | lower) "github" }} {{ $repoURL = $repoURL | append "blob" (.Site.Params.docs.repoBranch | default "main") }} {{ $iconPath = "images/social/github_icon.svg" }} {{ else if strings.Contains ($repoHostname | lower) "gitlab" }} {{ $repoURL = $repoURL | append "-/blob" (.Site.Params.docs.repoBranch | default "main") }} {{ $iconPath = "images/social/gitlab_icon.svg" }} {{ else if strings.Contains ($repoHostname | lower) "bitbucket" }} {{ $repoURL = $repoURL | append "src" (.Site.Params.docs.repoBranch | default "master") }} {{ $iconPath = "images/social/bitbucket_icon.svg" }} {{ end }} {{ $repoURL = $repoURL | append "docs/content" .Site.LanguagePrefix $filePath }} {{ $repoURL = delimit $repoURL "/" }} {{ $editPageURL := replaceRE "(https?://)|(/)+" "$1$2" $repoURL }}
{{ if .Site.Params.docs.editPage | default false -}}
{{ with resources.Get $iconPath }} {{ .Content | safeHTML }} {{ end }} Edit this page
{{ end }} {{ if .Site.Params.docs.lastMod | default false -}}

Last updated {{ dateFormat "02 Jan 2006, 15:04 MST" .GitInfo.AuthorDate }} . history

{{ end }}