feat: truncate the git commit hash

This commit is contained in:
Youwen Wu 2024-12-31 22:39:45 -08:00
parent 6e190dddeb
commit 67c8fae9ac
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -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]
] ]
] ]