From 415fafc7f41766deab29e4c2f7896a14c56d4d58 Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 19 Nov 2024 09:24:02 +0100 Subject: [PATCH] fix: allow leaving logo-image empty --- src/style.typ | 6 +++++- template/main.typ | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/style.typ b/src/style.typ index 1cb9dc7..e5397a3 100644 --- a/src/style.typ +++ b/src/style.typ @@ -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))) diff --git a/template/main.typ b/template/main.typ index 8d78ca1..a411caf 100644 --- a/template/main.typ +++ b/template/main.typ @@ -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