mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
Fix white page when funding was not specified
This was caused by creating a page before first checking whether there was any content for that page beforehand, so it would result in a rogue white page with no content.
This commit is contained in:
@@ -494,20 +494,23 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
// add funding/sponsor page
|
// add funding/sponsor page
|
||||||
page(context {
|
context {
|
||||||
|
// check if funding has been provided, otherwise we risk adding an empty page instead
|
||||||
|
if _funding_content.final() != [] {
|
||||||
|
page({
|
||||||
let funding_content = _funding_content.final()
|
let funding_content = _funding_content.final()
|
||||||
let alt_title = _funding_alt_title.final()
|
let alt_title = _funding_alt_title.final()
|
||||||
|
|
||||||
if funding_content != [] {
|
|
||||||
if alt_title != none {
|
if alt_title != none {
|
||||||
heading(level: 1, alt_title)
|
heading(level: 1, alt_title)
|
||||||
} else {
|
} else {
|
||||||
heading(level: 1, "Funding")
|
heading(level: 1, "Funding")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
funding_content
|
funding_content
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
page(include "../chapters/team.typ")
|
page(include "../chapters/team.typ")
|
||||||
page(include "../chapters/using-this-datasheet.typ")
|
page(include "../chapters/using-this-datasheet.typ")
|
||||||
|
|||||||
Reference in New Issue
Block a user