fix: hide empty author information (#119)
Create Release Commit / prepare (push) Has been cancelled Details

Reviewed-on: #119
Release-As: v0.6.2
Co-authored-by: servostar <sven.vogel123@web.de>
Co-committed-by: servostar <sven.vogel123@web.de>
This commit is contained in:
Sven Vogel 2024-12-01 11:44:54 +00:00 committed by Sven Vogel
parent 0181e710b8
commit 93f0a30109
1 changed files with 15 additions and 11 deletions

View File

@ -107,17 +107,21 @@
grid(columns: cols, column-gutter: 1.5em, ..config
.authors
.slice(i * 3, i * 3 + cols)
.map(author => grid(
columns: 1,
row-gutter: 1em,
text(size: 1.25em, author.name),
text(size: 1em, author.company),
text(size: 1em, author.contact),
[
#str(author.matriculation-number),
#author.course
],
)))
.map(author => par([
#if author.at("name", default: none) != none {
text(size: 1.25em, author.name)
linebreak()
}
#if author.at("company", default: none) != none {
text(size: 1em, author.company)
linebreak()
}
#if author.at("contact", default: none) != none {
text(size: 1em, author.contact)
linebreak()
}
#str(author.matriculation-number), #author.course
])))
}
]