make domain bg optional
This commit is contained in:
+9
-7
@@ -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),
|
||||
)[
|
||||
|
||||
Reference in New Issue
Block a user