From ca493cae5d12c949e93863664c8b6e7e7113d682 Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Sat, 28 Sep 2024 11:43:13 -0400 Subject: [PATCH] Allow date to be none --- khw.typ | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/khw.typ b/khw.typ index eb4edcb..5854397 100644 --- a/khw.typ +++ b/khw.typ @@ -185,8 +185,9 @@ } // Date - let nicedate = date.display("[month repr:long] [day padding:none], [year]") + let nicedate = none if date != none { + nicedate = date.display("[month repr:long] [day padding:none], [year]") nicedate linebreak() } @@ -204,7 +205,9 @@ set pagebreak(weak: true) show "%%author%%": author show "%%title%%": title - show "%%date%%": nicedate + if (date != none) { + show "%%date%%": nicedate + } doc }