Skip to content

Commit

Permalink
[Feature] Hide subtitle in cover when it is empty str
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephyrusZhang committed Apr 8, 2024
1 parent 9a6ff89 commit f03dc45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions template/cover_en.typ
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@
it = it + 1
}

display_info(
" ",
info.subtitle,
)
if info.subtitle != "" {
display_info(
" ",
info.subtitle,
)
}

display_info(
"Student Name:",
Expand Down
10 changes: 6 additions & 4 deletions template/cover_zh.typ
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@
it = it + 1
}

display_info(
" ",
info.subtitle,
)
if info.subtitle != "" {
display_info(
" ",
info.subtitle,
)
}

display_info(
"姓  名:",
Expand Down

0 comments on commit f03dc45

Please sign in to comment.