From 768ba54856eb7e0151d8dab3df69cd8db5566ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mekina?= Date: Thu, 2 Oct 2025 15:26:55 +0200 Subject: [PATCH] classic template fixes --- template/classic/common.typ | 4 +--- template/classic/other.typ | 8 +------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/template/classic/common.typ b/template/classic/common.typ index b278dbb..f283873 100644 --- a/template/classic/common.typ +++ b/template/classic/common.typ @@ -98,9 +98,7 @@ let info_fields = ( ("study_programme", study_programme, false), ("study_branch", study_branch, false), - ( - if not is_none(author) and author.contains(", ") {"authors" } else { "author" }, author, true - ), + ("author", author, true), ("supervisor", supervisor, false), ) context { diff --git a/template/classic/other.typ b/template/classic/other.typ index 5b6c346..039303e 100644 --- a/template/classic/other.typ +++ b/template/classic/other.typ @@ -11,14 +11,8 @@ content ) = { - let force_langs = ("cs", "en"); assert_not_none(title, "title"); - assert_dict_has(force_langs, title, "title"); - - assert_not_none(study_programme, "study programme"); - assert_in_arr(language, study_programme, "study programme"); - assert_not_none(study_branch, "study branch"); - assert_in_arr(language, study_branch, "study branch"); + assert_dict_has((language,), title, "title"); mainpage(faculty_id, language, none, title, author, supervisor, study_programme, study_branch); default_styling(true, faculty_color, {