{{ if .File }} {{ $pathFormatted := replace .File.Path "\\" "/" -}} {{ $gh_repo := ($.Param "github_repo") -}} {{ $gh_url := ($.Param "github_url") -}} {{ $gh_subdir := ($.Param "github_subdir") -}} {{ $gh_project_repo := ($.Param "github_project_repo") -}} {{ $gh_branch := (default "main" ($.Param "github_branch")) -}}
{{ end -}}