{{- $params := partial "function/params.html" -}} {{- /* Git info */ -}} {{- $gitRepo := "" -}} {{- $blobURL := "" -}} {{- $sourceURL := "" -}} {{- $editURL := "" -}} {{- $reportURL := "" -}} {{- with .Site.Params.gitInfo -}} {{- if .Repo -}} {{- $gitRepo = strings.TrimSuffix "/" .Repo -}} {{- $blobURL = printf "%v/blob/%v/%v/{path}" $gitRepo .Branch .Dir -}} {{- $editURL = printf "%v/edit/%v/%v/{path}" $gitRepo .Branch .Dir -}} {{- $reportURL = printf "%v/issues/new?%v" $gitRepo .IssueTpl -}} {{- end -}} {{- end -}}