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:
PeskyPotato 2024-07-05 12:02:23 +00:00 committed by Bjørn Erik Pedersen
parent b274b3238a
commit 732d10ec46

View File

@ -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.