summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorPeskyPotato <peskypotato@protonmail.com>2024-07-05 12:02:23 +0000
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-07-06 16:28:11 +0200
commit0ee2610d7c67bad1c3d8de579c6aa368ebcf761e (patch)
tree42c49ac8db17f9278225af3b7517984fdfa65aad /docs/content
parent251a23ef76e4fcee4664a5e7bfdac5cba490b6cb (diff)
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
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/en/methods/page/GitInfo.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/en/methods/page/GitInfo.md b/docs/content/en/methods/page/GitInfo.md
index 9dba2a2b2..c54a77371 100644
--- a/docs/content/en/methods/page/GitInfo.md
+++ b/docs/content/en/methods/page/GitInfo.md
@@ -113,6 +113,16 @@ This is configurable. See&nbsp;[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.