{{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ else }} {{ $path = .Path }} {{ end }} {{ if $path }} {{ $pathFormatted := replace $path "\\" "/" }} {{ $gh_repo := ($.Param "github_repo") }} {{ $gh_subdir := ($.Param "github_subdir") }} {{ $gh_project_repo := ($.Param "github_project_repo") }} {{ $gh_branch := (default "_dev" ($.Param "github_branch")) }} {{ if $gh_repo }}
{{ $editURL := printf "%s/edit/%s/docs/content/%s" $gh_repo $gh_branch $pathFormatted }} {{ if and ($gh_subdir) (.Site.Language.Lang) }} {{ $editURL = printf "%s/edit/%s/%s/docs/content/%s" $gh_repo $gh_branch $gh_subdir $pathFormatted }} {{ else if $gh_subdir }} {{ $editURL = printf "%s/edit/%s/%s/docs/content/%s" $gh_repo $gh_branch $gh_subdir $pathFormatted }} {{ end }} {{ $issuesURL := printf "%s/issues/new?title=hof%%2Fdocs%%3A%%20page%%20docs%%2fcontent%%2f%s" $gh_repo (htmlEscape $.File.Path )}} Edit this page Create page issue {{ if $gh_project_repo }} {{ $project_issueURL := printf "%s/issues/new" $gh_project_repo }} Create project issue {{ end }}
{{ end }} {{ end }}