fix: hide empty author information
This commit is contained in:
parent
0181e710b8
commit
c7edb74853
|
@ -107,17 +107,21 @@
|
||||||
grid(columns: cols, column-gutter: 1.5em, ..config
|
grid(columns: cols, column-gutter: 1.5em, ..config
|
||||||
.authors
|
.authors
|
||||||
.slice(i * 3, i * 3 + cols)
|
.slice(i * 3, i * 3 + cols)
|
||||||
.map(author => grid(
|
.map(author => par([
|
||||||
columns: 1,
|
#if author.at("name", default: none) != none {
|
||||||
row-gutter: 1em,
|
text(size: 1.25em, author.name)
|
||||||
text(size: 1.25em, author.name),
|
linebreak()
|
||||||
text(size: 1em, author.company),
|
}
|
||||||
text(size: 1em, author.contact),
|
#if author.at("company", default: none) != none {
|
||||||
[
|
text(size: 1em, author.company)
|
||||||
#str(author.matriculation-number),
|
linebreak()
|
||||||
#author.course
|
}
|
||||||
],
|
#if author.at("contact", default: none) != none {
|
||||||
)))
|
text(size: 1em, author.contact)
|
||||||
|
linebreak()
|
||||||
|
}
|
||||||
|
#str(author.matriculation-number), #author.course
|
||||||
|
])))
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue