Skip to content

Commit

Permalink
Allow date to be none
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkasad committed Sep 28, 2024
1 parent 8bc20e3 commit ca493ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions khw.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -204,7 +205,9 @@
set pagebreak(weak: true)
show "%%author%%": author
show "%%title%%": title
show "%%date%%": nicedate
if (date != none) {
show "%%date%%": nicedate
}
doc
}

Expand Down

0 comments on commit ca493ca

Please sign in to comment.