{{/* GitInfo */}}
{{"https://gohugo.io/variables/git/" | markdownify }}
{{`config.toml: enableGitInfo = true`}}
.Site.Params.enableGitInfoProject: {{.Site.Params.enableGitInfoProject}}
{{if .Site.Params.enableGitInfoProject }}
{{ printf `%+v
T:%T
#v:%#v` $.GitInfo $.GitInfo $.GitInfo }}
{{`git info regarding this file `}}
$.GitInfo.Subject: {{ $.GitInfo.Subject }}
$.GitInfo.AuthorDate: {{ $.GitInfo.AuthorDate }}
.Lastmod: {{ .Lastmod }}
{{end}}
{{ "https://gohugo.io/variables/git/#lastmod" | markdownify }}
https://gohugo.io/variables/git/
config.toml: enableGitInfo = true
.Site.Params.enableGitInfoProject: true
&{Hash:af5cc9b838535c9e80670dcb54dd0686f5738cd8 AbbreviatedHash:af5cc9b Subject:add more variables AuthorName:Bruno Grossniklaus AuthorEmail:grossnik@tuvok AuthorDate:2018-01-27 15:59:32 +0100 CET}
T:*gitmap.GitInfo
#v:&gitmap.GitInfo{Hash:"af5cc9b838535c9e80670dcb54dd0686f5738cd8", AbbreviatedHash:"af5cc9b", Subject:"add more variables", AuthorName:"Bruno Grossniklaus", AuthorEmail:"grossnik@tuvok", AuthorDate:time.Time{wall:0x0, ext:63652661972, loc:(*time.Location)(0x14f4ba0)}}
git info regarding this file
$.GitInfo.Subject: add more variables
$.GitInfo.AuthorDate: 2018-01-27 15:59:32 +0100 CET
.Lastmod: 2018-01-27 15:59:32 +0100 CET
https://gohugo.io/variables/git/#lastmod