From 71aa7d8abfe222873b7287227e5cf77fa4b26e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 18 Dec 2023 09:42:00 +0100 Subject: [PATCH] Update GitInfo.md --- content/en/methods/page/GitInfo.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/en/methods/page/GitInfo.md b/content/en/methods/page/GitInfo.md index 88137614c..d4545ab0c 100644 --- a/content/en/methods/page/GitInfo.md +++ b/content/en/methods/page/GitInfo.md @@ -61,6 +61,15 @@ AuthorDate {{ end }} ``` +CommitDate +: (`time.Time`) The commit date. + +```go-html-template +{{ with .GitInfo }} + {{ .CommitDate.Format "2006-01-02" }} → 2023-10-09 +{{ end }} +``` + AuthorEmail : (`string`) The author's email address, respecting [gitmailmap].