mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
source: Expose GitInfo Body
Updated bep/gitmap to v1.4.0, to get commit message's Body. Added Body to GitInfo struct. Docs upated with commit body example. Fixes #10905
This commit is contained in:
parent
251a23ef76
commit
0ee2610d7c
4 changed files with 15 additions and 3 deletions
|
@ -175,6 +175,8 @@ type GitInfo struct {
|
|||
AuthorDate time.Time `json:"authorDate"`
|
||||
// The commit date.
|
||||
CommitDate time.Time `json:"commitDate"`
|
||||
// The commit message's body.
|
||||
Body string `json:"body"`
|
||||
}
|
||||
|
||||
// IsZero returns true if the GitInfo is empty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue