{{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ else }} {{ $path = .Path }} {{ end }} {{ $pathFormatted := replace $path "\\" "/" }} {{- $prefix := index (split $path "/") 0 -}} {{- $github := index ($.Site.Param "github") $prefix -}} {{ if not $github }}{{- $github = ($.Site.Param "github") -}}{{ end }} {{ if $github }} {{ $gh_repo := index $github "repo" }} {{ $gh_subdir := index $github "subdir" }} {{ $gh_project_repo := index $github "project_repo" }} {{ $gh_branch := (default "main" (index $github "branch")) }} {{ if $gh_repo }}
{{ end }} {{ end }}