make domain bg optional

This commit is contained in:
2026-08-29 11:48:55 +09:00
parent 34f250e169
commit 5054ea6388
+9 -7
View File
@@ -462,13 +462,15 @@
chrome_color: color-ink-helper, chrome_color: color-ink-helper,
content, content,
) = page( ) = page(
background: stack( background: if bg_img_path != none {
image(bg_img_path, width: 100.5%, height: 100.5%, fit: "cover"), stack(
move( image(bg_img_path, width: 100.5%, height: 100.5%, fit: "cover"),
dy: -50%, move(
rect(width: 100.5%, height: 100.5%, fill: cover_color), dy: -50%,
), rect(width: 100.5%, height: 100.5%, fill: cover_color),
), ),
)
} else { none },
header: header_template(font_color: chrome_color), header: header_template(font_color: chrome_color),
footer: footer_template(font_color: chrome_color), footer: footer_template(font_color: chrome_color),
)[ )[