Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Update variable name from update_time to update_date
Browse files Browse the repository at this point in the history
  • Loading branch information
cu1ch3n committed Apr 3, 2024
1 parent 5b2d8fb commit a90c82b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/caidan.typ
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#let caidan(
title: none,
cover_image: none,
update_time: none,
update_date: none,
page_height: 595.28pt,
page_width: 841.89pt,
num_columns: 3,
Expand Down Expand Up @@ -162,13 +162,13 @@
cover_image
}
}
#if update_time != none {
#if update_date != none {
v(5em)
zh_text(10pt)[
更新于:#update_time.display("[year]年[month padding:none]月[day padding:none]日") ]
更新于:#update_date.display("[year]年[month padding:none]月[day padding:none]日") ]
linebreak()
en_text(8pt)[
Updated on #update_time.display("[month repr:long] [day], [year]")]
Updated on #update_date.display("[month repr:long] [day], [year]")]
}
]
#let text_dy = (page_height - measure(title_content).height) / 2 - frame.dy - 2em
Expand Down
2 changes: 1 addition & 1 deletion main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#show: caidan.with(
title: [#en_text(22pt, fill: nord0)[Chen's Private Cuisine]],
cover_image: image("cover.png"),
update_time: datetime.today(),
update_date: datetime.today(),
page_height: 595.28pt,
page_width: 841.89pt,
num_columns: 3,
Expand Down

0 comments on commit a90c82b

Please sign in to comment.