fixed 自定义背景图

This commit is contained in:
Vaica committed 2026-01-22 22:33:35 +08:00
1 parent 5f98989670
commit 1a5a7c5aaf
7 files changed
+41 -9

No files matched your search

+15
View File
@@ -34,3 +34,18 @@ HasCJKLanguage = true
# 自定义文章固定链接:使用 日期 作为文件名(如 /20260117.html)
[permalinks]
post = "/:year:month:day"
[params]
[params.style]
# 自定义背景图开关
enableBackgroundImage = true
# 背景图链接 (留空则不显示背景图,enableBackgroundImage=false 时此项无效)
backgroundImageUrl = "/image/deno.webp"
# 背景图显示模式: cover (全屏铺满), contain (完整显示), auto (原始大小), 或具体数值 (如 100% auto)
backgroundSize = "contain"
# 背景图重复: no-repeat (不重复), repeat (重复), repeat-x, repeat-y, round (自动调整)
backgroundRepeat = "round"
# 背景图位置: center, top, bottom, left, right
backgroundPosition = "center"
# 背景图固定: fixed (固定), scroll (随页面滚动)
backgroundAttachment = "fixed"