{{- $path := "" -}} {{- with .File -}} {{- $path = .Path -}} {{- else -}} {{- $path = .Path -}} {{- end -}} {{ if .GitInfo }} {{ if and .Site.Params.enablePostGitInfo (.Params.gitinfo | default .Site.Params.displayPostGitInfo) }}
{{ if or .Site.Params.displayCommitHash .Site.Params.displayCommitMessage }}
{{ if .Site.Params.displayCommitHash }}
{{- with .Site.Params.repoURL -}} {{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.gitIcon "class" "git-icon") -}} {{- $.GitInfo.AbbreviatedHash -}} {{- else -}} {{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.gitIcon "class" "git-icon") -}} {{- $.GitInfo.AbbreviatedHash -}} {{- end -}}
{{ end }} {{ if .Site.Params.displayCommitMessage }} {{ with .GitInfo.Subject }}
{{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.msgIcon "class" "msg-icon") -}} {{- . -}}
{{ end }} {{ end }}
{{ end }} {{ if or .Site.Params.displayFeedback .Site.Params.displayEditLink }}
{{ if .Site.Params.displayFeedback }} {{ with .Site.Params.repoURL }} {{ end }} {{ end }} {{ if .Site.Params.displayEditLink }} {{ with .Site.Params.repoEditURL }} {{ $contentDir := (cond $.Site.IsMultiLingual (printf `/%s/` $.Site.Params.contentDir) "/content/") }} {{ end }} {{ end }}
{{ end }}
{{ end }} {{ end }}