diff --git a/README.md b/README.md index f971686..ff96a0a 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,20 @@ ## 🚨 注意事项(看我看我) 1. **建站时间必填** + 2. 如果安装主题后报错,请仔细查阅主题说明更新说明!!! + 3. 建议每次更新主题后重载一次主题配置,然后重启Halo,以降低旧数据缓存对程序带来的影响。 + 4. 如果遇到问题解决不了,可以提 ISSUE + 5. `1.0.0`及以上版本需要`Halo`版本>=`2.14.0` + + `1.0.3`及以上版本需要`Halo`版本>=`2.20.0` + 6. **若安装主题后出现500错误,请到主题设置页面,将每个设置项都保存一下!!!** + 7. 此主题`所有版本`必须使用`本地资源`。 ### 🔌 插件依赖 diff --git a/settings.yaml b/settings.yaml index 2e15240..d6e1b6c 100644 --- a/settings.yaml +++ b/settings.yaml @@ -3063,10 +3063,6 @@ spec: options: - label: 本地 value: local - - label: onmicrosoft - value: onmicrosoft - - label: cbd - value: cbd - label: 自定义 value: custom - $formkit: url diff --git a/templates/assets/css/tenyear.css b/templates/assets/css/tenyear.css index f71c6dc..1a5358f 100644 --- a/templates/assets/css/tenyear.css +++ b/templates/assets/css/tenyear.css @@ -33,7 +33,7 @@ font-size: 14px; color: var(--heo-card-bg); font-weight: bold; - top: 10px; + top: 7px; white-space: nowrap; transition: left 0.5s linear; visibility: hidden; diff --git a/templates/modules/layouts/layout.html b/templates/modules/layouts/layout.html index b99c6ee..19d5476 100644 --- a/templates/modules/layouts/layout.html +++ b/templates/modules/layouts/layout.html @@ -1,8 +1,6 @@ 控制台 - + 退出登录 + + href="/login" + onclick="this.href = '/login?redirect_uri=' + encodeURIComponent(window.location.href)"> 登录 diff --git a/theme.yaml b/theme.yaml index 52f2e7f..009c92a 100644 --- a/theme.yaml +++ b/theme.yaml @@ -53,7 +53,7 @@ spec: settingName: "theme-hao-setting" configMapName: "theme-hao-configMap" version: "1.0.3-ce" - require: ">=2.15.0" + require: ">=2.20.0" license: - name: "CC BY-SA 4.0" url: "https://gitee.com/uptoz/halo-theme-hao/blob/main/LICENSE"