fix: allow leaving logo-image empty
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 2m9s Details

This commit is contained in:
Sven Vogel 2024-11-19 09:24:02 +01:00
parent 5d7d65a414
commit 415fafc7f4
2 changed files with 10 additions and 1 deletions

View File

@ -300,7 +300,11 @@
// we need two, so make both half the page width
columns: (50%, 50%),
// left align logo of ABB
align(left, image(style.header.logo-image, height: style.header.logo-height)),
if style.header.logo-image == none {
[]
} else if style.header.logo-image.len() > 0 {
align(left, image(style.header.logo-image, height: style.header.logo-height))
},
// right align logo of DHBW
align(right, image("res/DHBW.svg", height: style.header.logo-height)))

View File

@ -31,6 +31,11 @@
glossary: yaml("glossary.yml"),
appendices: include "appendix.typ",
),
style: (
header: (
logo-image: ""
)
)
))
#import "@preview/wrap-it:0.1.0": wrap-content