From 67c8fae9ac3ff431973ca44d0fe095b67a9d1739 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 31 Dec 2024 22:39:45 -0800 Subject: [PATCH] feat: truncate the git commit hash --- template.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.typ b/template.typ index 3130a83..15d7396 100644 --- a/template.typ +++ b/template.typ @@ -2,7 +2,7 @@ #let git_rev = ( if "GIT_REV" in sys.inputs { - sys.inputs.GIT_REV + sys.inputs.GIT_REV.slice(0, 7) } else { "NO_GIT_DONT_USE" } @@ -152,7 +152,7 @@ #v(1fr, weak: false) #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] ] ]