fix error on no author
This commit is contained in:
@@ -1,12 +1,8 @@
|
|||||||
#import "template/template.typ": *
|
#import "template/template.typ": *
|
||||||
|
|
||||||
#show: tultemplate2.with(
|
#show: tultemplate2.with(
|
||||||
document: "bp",
|
title: (cs: "Návod na použití Typst TUL šablony"),
|
||||||
faculty: "fm",
|
|
||||||
title: (cs: "Návod na použití Typst TUL šablony", en: lorem(10)),
|
|
||||||
abstract: (cs: [lorem(100)], en: [lorem(100)]),
|
|
||||||
author: "Ondřej Mekina, Matěj Žucha",
|
author: "Ondřej Mekina, Matěj Žucha",
|
||||||
author_gender: "masculine",
|
|
||||||
supervisor: "Ondřej Mekina",
|
supervisor: "Ondřej Mekina",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -97,7 +97,9 @@
|
|||||||
// [field_name, field_value, bold]
|
// [field_name, field_value, bold]
|
||||||
let info_fields = (
|
let info_fields = (
|
||||||
("study_programme", study_programme, false),
|
("study_programme", study_programme, false),
|
||||||
(if author.contains(", ") { "authors" } else { "author" }, author, true),
|
(
|
||||||
|
if not is_none(author) and author.contains(", ") {"authors" } else { "author" }, author, true
|
||||||
|
),
|
||||||
("supervisor", supervisor, false),
|
("supervisor", supervisor, false),
|
||||||
)
|
)
|
||||||
context {
|
context {
|
||||||
|
Reference in New Issue
Block a user