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 251a23ef76
commit 0ee2610d7c
4 changed files with 15 additions and 3 deletions

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.