mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02: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:
committed by
Bjørn Erik Pedersen
parent
251a23ef76
commit
0ee2610d7c
@@ -113,6 +113,16 @@ This is configurable. See [details].
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
###### Body
|
||||
|
||||
(`string`) The commit message body.
|
||||
|
||||
```go-html-template
|
||||
{{ with .GitInfo }}
|
||||
{{ .Body }} → - Two new pages added.
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
## Last modified date
|
||||
|
||||
By default, when `enableGitInfo` is `true`, the `Lastmod` method on a `Page` object returns the Git AuthorDate of the last commit that included the file.
|
||||
|
Reference in New Issue
Block a user