feat: truncate the git commit hash
This commit is contained in:
parent
6e190dddeb
commit
67c8fae9ac
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#let git_rev = (
|
#let git_rev = (
|
||||||
if "GIT_REV" in sys.inputs {
|
if "GIT_REV" in sys.inputs {
|
||||||
sys.inputs.GIT_REV
|
sys.inputs.GIT_REV.slice(0, 7)
|
||||||
} else {
|
} else {
|
||||||
"NO_GIT_DONT_USE"
|
"NO_GIT_DONT_USE"
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
#v(1fr, weak: false)
|
#v(1fr, weak: false)
|
||||||
#datetime.today().display("[month repr:long] [day], [year]")
|
#datetime.today().display("[month repr:long] [day], [year]")
|
||||||
|
|
||||||
#text(size: 8pt)[Built from Git revision #git_rev.]
|
#text(size: 8pt)[Built from Git revision #git_rev]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue