{{ $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" }} {{ if isset .Params "lastmod" }} {{ T "post_last_mod"}} {{ .Lastmod.Format .Site.Params.time_format_default }}{{ with .GitInfo }}: {{ .Subject }} ({{ .AbbreviatedHash }}){{end }} {{ end }} {{ end }}