mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 04:04:53 -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 }}
|
{{ end }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### Body
|
||||||
|
|
||||||
|
(`string`) The commit message body.
|
||||||
|
|
||||||
|
```go-html-template
|
||||||
|
{{ with .GitInfo }}
|
||||||
|
{{ .Body }} → - Two new pages added.
|
||||||
|
{{ end }}
|
||||||
|
```
|
||||||
|
|
||||||
## Last modified date
|
## 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.
|
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