mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 14:24:43 -04: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
b274b3238a
commit
732d10ec46
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user