feat: skip heading
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
title: none,
|
title: none,
|
||||||
authors: (),
|
authors: (),
|
||||||
mentors: (),
|
mentors: (),
|
||||||
|
skip-heading: false,
|
||||||
) = {
|
) = {
|
||||||
assert(authors.len() > 0, message: "At least one author required")
|
assert(authors.len() > 0, message: "At least one author required")
|
||||||
|
|
||||||
@@ -96,6 +97,7 @@
|
|||||||
|
|
||||||
(layouts.at(university, default: layouts.default))()
|
(layouts.at(university, default: layouts.default))()
|
||||||
|
|
||||||
|
if not skip-heading {
|
||||||
pagebreak(weak: true)
|
pagebreak(weak: true)
|
||||||
|
|
||||||
// Set heading counter based on title/number
|
// Set heading counter based on title/number
|
||||||
@@ -107,8 +109,10 @@
|
|||||||
if number != none {
|
if number != none {
|
||||||
context counter(heading).update(number - 1)
|
context counter(heading).update(number - 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
heading(eval(title, mode: "markup"))
|
heading(eval(title, mode: "markup"))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
doc
|
doc
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user