{{- $path := "" -}} {{- with .File -}} {{- $path = .Path -}} {{- else -}} {{- $path = .Path -}} {{- end -}} {{ if .GitInfo }} {{ if and .Site.Params.enablePostGitInfo (.Params.gitinfo | default .Site.Params.displayPostGitInfo) }}