{{- $repo := "authelia/authelia" }}{{ with .Get "repo" }}{{ $repo = . }}{{ end }} {{- $branch := printf "v%s" .Site.Data.misc.latest }}{{ with .Get "branch" }}{{ $branch = . }}{{ end }} {{- $path := "" }}{{ with .Get "path" }}{{ $path = . }}{{ end }} {{- $link := printf "https://github.com/%s/blob/%s/%s" $repo $branch (urlquery $path) }} {{- $name := "" }} {{- with .Get "name" }} {{- $name = . }} {{- else }} {{- if (eq $repo "authelia/authelia") }} {{- $name = $path }} {{- else }} {{- $name = printf "https://github.com/%s/blob/%s/%s" $repo $branch $path }} {{- end }} {{- end }} {{- "" -}} {{ $name }} {{- "" -}}