Skip to content

Commit

Permalink
themes/university: Fix section handling when no title is given
Browse files Browse the repository at this point in the history
  • Loading branch information
2xsaiko committed May 22, 2024
1 parent 19eb47e commit a2052c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions themes/university.typ
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,13 @@
})

let header-text = {
if new-section != none {
utils.register-section(new-section)
}

if header != none {
header
} else if title != none {
if new-section != none {
utils.register-section(new-section)
}
} else if title != none or utils.current-section != none {
locate( loc => {
let colors = uni-colors.at(loc)
block(fill: colors.c, inset: (x: .5em), grid(
Expand Down

0 comments on commit a2052c3

Please sign in to comment.