mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 10:54:51 -04:00
Update GitInfo.md
This commit is contained in:
parent
3484414916
commit
71aa7d8abf
@ -61,6 +61,15 @@ AuthorDate
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
CommitDate
|
||||||
|
: (`time.Time`) The commit date.
|
||||||
|
|
||||||
|
```go-html-template
|
||||||
|
{{ with .GitInfo }}
|
||||||
|
{{ .CommitDate.Format "2006-01-02" }} → 2023-10-09
|
||||||
|
{{ end }}
|
||||||
|
```
|
||||||
|
|
||||||
AuthorEmail
|
AuthorEmail
|
||||||
: (`string`) The author's email address, respecting [gitmailmap].
|
: (`string`) The author's email address, respecting [gitmailmap].
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user