mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-19 20:09:24 +08:00
feat(theme): 尝试适配 1.0.5 更新,实现背景自定义功能
- 新增主题配置项,允许用户通过 Komari 后台自定义背景图片、切换时间和过渡效果。 - 更新 GitHub Actions 发布流程,改用 `softprops/action-gh-release@v2` 以简化发布和资产上传步骤。 - 为国旗图片添加懒加载(`loading="lazy"`),优化页面加载性能。
This commit is contained in:
5
src/config/default.ts
Normal file
5
src/config/default.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const BACKGROUND = {
|
||||
backgroundImage: "https://i.yon.li/w/682f73d97eade.png",
|
||||
switchTime: 10, // 10 seconds
|
||||
transition: "background-image 0.8s ease-in-out", // CSS transition for background change
|
||||
};
|
Reference in New Issue
Block a user