mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Remove the internal GitInfo type and make Page.GitInf() return a pointer
See #5693
This commit is contained in:
@@ -405,7 +405,7 @@ func (p *pageState) setMetaPostParams() error {
|
||||
}
|
||||
|
||||
var gitAuthorDate time.Time
|
||||
if !p.gitInfo.IsZero() {
|
||||
if p.gitInfo != nil {
|
||||
gitAuthorDate = p.gitInfo.AuthorDate
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user