mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Update GitInfo.md
This commit is contained in:
1 parent
3484414916
commit
71aa7d8abf
1 file changed
+9
@@ -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].
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user