From 5054ea63885638286ce69b1e2740eff77ad9a6ae Mon Sep 17 00:00:00 2001 From: seung6lee Date: Sat, 29 Aug 2026 11:48:55 +0900 Subject: [PATCH] make domain bg optional --- template.typ | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/template.typ b/template.typ index 2027de9..7350ae3 100644 --- a/template.typ +++ b/template.typ @@ -462,13 +462,15 @@ chrome_color: color-ink-helper, content, ) = page( - background: stack( - image(bg_img_path, width: 100.5%, height: 100.5%, fit: "cover"), - move( - dy: -50%, - rect(width: 100.5%, height: 100.5%, fill: cover_color), - ), - ), + background: if bg_img_path != none { + stack( + image(bg_img_path, width: 100.5%, height: 100.5%, fit: "cover"), + move( + dy: -50%, + rect(width: 100.5%, height: 100.5%, fill: cover_color), + ), + ) + } else { none }, header: header_template(font_color: chrome_color), footer: footer_template(font_color: chrome_color), )[