add: `页脚`增加云服务商展示
This commit is contained in:
parent
030293dda8
commit
e12dc7d305
|
@ -1058,7 +1058,15 @@ spec:
|
||||||
name: footerContent
|
name: footerContent
|
||||||
label: 页脚内容
|
label: 页脚内容
|
||||||
value:
|
value:
|
||||||
|
default_enable_group:
|
||||||
default_enable: true
|
default_enable: true
|
||||||
|
dingyue: true
|
||||||
|
zhuti: true
|
||||||
|
about: true
|
||||||
|
icp_icon: true
|
||||||
|
gongwangan: true
|
||||||
|
yingsi: true
|
||||||
|
yunzhichi: false
|
||||||
style_one:
|
style_one:
|
||||||
owner_enable: false
|
owner_enable: false
|
||||||
runtime_enable: true
|
runtime_enable: true
|
||||||
|
@ -1071,12 +1079,17 @@ spec:
|
||||||
- link: "https://halo.run/"
|
- link: "https://halo.run/"
|
||||||
shields: "https://npm.onmicrosoft.cn/hao-theme-static@1.3.6/images/Frame-Halo-blue.svg"
|
shields: "https://npm.onmicrosoft.cn/hao-theme-static@1.3.6/images/Frame-Halo-blue.svg"
|
||||||
message: "博客框架为halo2.x"
|
message: "博客框架为halo2.x"
|
||||||
|
children:
|
||||||
|
- $formkit: group
|
||||||
|
name: default_enable_group
|
||||||
|
label: 底部页脚
|
||||||
|
value:
|
||||||
children:
|
children:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
name: default_enable
|
name: default_enable
|
||||||
id: default_enable
|
id: default_enable
|
||||||
key: default_enable
|
key: default_enable
|
||||||
label: 底部
|
label: 底部启用
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
value: true
|
value: true
|
||||||
|
@ -1085,7 +1098,8 @@ spec:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
if: $get(default_enable).value
|
if: $get(default_enable).value
|
||||||
name: dingyue
|
name: dingyue
|
||||||
default_enable: true
|
id: dingyue
|
||||||
|
key: dingyue
|
||||||
label: 订阅
|
label: 订阅
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
|
@ -1095,7 +1109,8 @@ spec:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
if: $get(default_enable).value
|
if: $get(default_enable).value
|
||||||
name: zhuti
|
name: zhuti
|
||||||
default_enable: true
|
id: zhuti
|
||||||
|
key: zhuti
|
||||||
label: 主题
|
label: 主题
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
|
@ -1105,7 +1120,8 @@ spec:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
if: $get(default_enable).value
|
if: $get(default_enable).value
|
||||||
name: about
|
name: about
|
||||||
default_enable: true
|
id: about
|
||||||
|
key: about
|
||||||
label: 关于
|
label: 关于
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
|
@ -1115,7 +1131,8 @@ spec:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
if: $get(default_enable).value
|
if: $get(default_enable).value
|
||||||
name: icp_icon
|
name: icp_icon
|
||||||
default_enable: true
|
id: icp_icon
|
||||||
|
key: icp_icon
|
||||||
label: icp备案
|
label: icp备案
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
|
@ -1125,7 +1142,8 @@ spec:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
if: $get(default_enable).value
|
if: $get(default_enable).value
|
||||||
name: gongwangan
|
name: gongwangan
|
||||||
default_enable: true
|
id: gongwangan
|
||||||
|
key: gongwangan
|
||||||
label: 公网安备案
|
label: 公网安备案
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
|
@ -1135,13 +1153,58 @@ spec:
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
if: $get(default_enable).value
|
if: $get(default_enable).value
|
||||||
name: yingsi
|
name: yingsi
|
||||||
default_enable: true
|
id: yingsi
|
||||||
label: yingsi
|
key: yingsi
|
||||||
|
label: 隐私
|
||||||
options:
|
options:
|
||||||
- label: 显示
|
- label: 显示
|
||||||
value: true
|
value: true
|
||||||
- label: 隐藏
|
- label: 隐藏
|
||||||
value: false
|
value: false
|
||||||
|
- $formkit: radio
|
||||||
|
if: $get(default_enable).value
|
||||||
|
name: yunzhichi
|
||||||
|
id: yunzhichi
|
||||||
|
key: yunzhichi
|
||||||
|
label: 云服务支持
|
||||||
|
options:
|
||||||
|
- label: 显示
|
||||||
|
value: true
|
||||||
|
- label: 隐藏
|
||||||
|
value: false
|
||||||
|
- $formkit: select
|
||||||
|
name: yunzhichi_list
|
||||||
|
id: yunzhichi_list
|
||||||
|
key: yunzhichi_list
|
||||||
|
if: $get(yunzhichi).value
|
||||||
|
label: 云服务商
|
||||||
|
options:
|
||||||
|
- value: upyun_cloud
|
||||||
|
label: 又拍云
|
||||||
|
- value: aliyun_cloud
|
||||||
|
label: 阿里云
|
||||||
|
- value: tencent_cloud
|
||||||
|
label: 腾讯云
|
||||||
|
- value: huawei_cloud
|
||||||
|
label: 华为云
|
||||||
|
- value: custom_cloud
|
||||||
|
label: 自定义地址
|
||||||
|
- $formkit: attachment
|
||||||
|
name: yunzhichi_url
|
||||||
|
id: yunzhichi_url
|
||||||
|
key: yunzhichi_url
|
||||||
|
label: 自定义云支持地址
|
||||||
|
if: $get(yunzhichi_list).value == 'custom_cloud'
|
||||||
|
value:
|
||||||
|
placeholder: 请输入自定义云支持地址
|
||||||
|
- $formkit: attachment
|
||||||
|
name: yunzhichi_url_link
|
||||||
|
id: yunzhichi_url_link
|
||||||
|
key: yunzhichi_url_link
|
||||||
|
label: 自定义云支持跳转地址
|
||||||
|
if: $get(yunzhichi_list).value == 'custom_cloud'
|
||||||
|
value:
|
||||||
|
placeholder: 请输入自定义云支持跳转地址(注意是跳转地址不是图片展示地址)
|
||||||
- $formkit: group
|
- $formkit: group
|
||||||
name: style_one
|
name: style_one
|
||||||
label: 中间
|
label: 中间
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
Binary file not shown.
After Width: | Height: | Size: 123 KiB |
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
|
@ -1,5 +1,5 @@
|
||||||
<!-- 页脚模块 -->
|
<!-- 页脚模块 -->
|
||||||
<footer id="footer">
|
<footer id="footer" xmlns:th="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
<div id="heo-footer-bar" th:if="${theme.config.footer.footer_bar.footer_bar_enable}">
|
<div id="heo-footer-bar" th:if="${theme.config.footer.footer_bar.footer_bar_enable}">
|
||||||
<div class="footer-logo"><th:block th:utext="${theme.config.footer.footer_bar.logo}"></th:block></div>
|
<div class="footer-logo"><th:block th:utext="${theme.config.footer.footer_bar.logo}"></th:block></div>
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
th:data-lazy-src="${ isLazyload ? img : ''}" th:alt="${data.message}" />
|
th:data-lazy-src="${ isLazyload ? img : ''}" th:alt="${data.message}" />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<span th:if="${!theme.config.footer.footerContent.default_enable}" style="padding: 20px 20px;">
|
<span th:if="${!theme.config.footer.footerContent.default_enable_group.default_enable}" style="padding: 20px 20px;">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -95,13 +95,13 @@
|
||||||
th:if="${(theme.config.footer.footerContent.style_one.owner_enable
|
th:if="${(theme.config.footer.footerContent.style_one.owner_enable
|
||||||
|| (not #lists.isEmpty(theme.config.footer.footerContent.style_one.bdageitem) && theme.config.footer.footerContent.style_one.bdageitem_enable )
|
|| (not #lists.isEmpty(theme.config.footer.footerContent.style_one.bdageitem) && theme.config.footer.footerContent.style_one.bdageitem_enable )
|
||||||
|| theme.config.footer.footerContent.style_one.runtime_enable)
|
|| theme.config.footer.footerContent.style_one.runtime_enable)
|
||||||
&& theme.config.footer.footerContent.default_enable}">
|
&& theme.config.footer.footerContent.default_enable_group.default_enable}">
|
||||||
#heo-footer {
|
#heo-footer {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div th:if="${theme.config.footer.footerContent.default_enable}" id="footer-banner">
|
<div th:if="${theme.config.footer.footerContent.default_enable_group.default_enable}" id="footer-banner">
|
||||||
<div class="footer-banner-links">
|
<div class="footer-banner-links">
|
||||||
<div class="footer-banner-left">
|
<div class="footer-banner-left">
|
||||||
<div id="footer-banner-tips">
|
<div id="footer-banner-tips">
|
||||||
|
@ -118,11 +118,58 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-banner-right">
|
<div class="footer-banner-right">
|
||||||
|
|
||||||
|
<!-- 又拍云 -->
|
||||||
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.yunzhichi && theme.config.footer.footerContent.default_enable_group.yunzhichi_list == 'upyun_cloud'}"
|
||||||
|
class="footer-banner-link cloud" href="https://www.upyun.com/"
|
||||||
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
|
target="_blank">
|
||||||
|
<span>本网站由</span>
|
||||||
|
<img th:src="${assets_link + '/images/footer/upyun-5.png'}" alt="upyun" class="entered loading cloud" />
|
||||||
|
<span>提供CDN加速/云存储服务</span>
|
||||||
|
</a>
|
||||||
|
<!-- 阿里云 -->
|
||||||
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.yunzhichi && theme.config.footer.footerContent.default_enable_group.yunzhichi_list == 'aliyun_cloud'}"
|
||||||
|
class="footer-banner-link cloud" href="https://www.aliyun.com/"
|
||||||
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
|
target="_blank">
|
||||||
|
<span>本网站由</span>
|
||||||
|
<img th:src="${assets_link + '/images/footer/aliyun.png'}" alt="aliyun_cloud" class="entered loading cloud" />
|
||||||
|
<span>提供CDN加速/云存储服务</span>
|
||||||
|
</a>
|
||||||
|
<!-- 腾讯云 -->
|
||||||
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.yunzhichi && theme.config.footer.footerContent.default_enable_group.yunzhichi_list == 'tencent_cloud'}"
|
||||||
|
class="footer-banner-link cloud" href="https://cloud.tencent.com/"
|
||||||
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
|
target="_blank">
|
||||||
|
<span>本网站由</span>
|
||||||
|
<img th:src="${assets_link + '/images/footer/tencent.png'}" alt="tencent_cloud" class="entered loading cloud" />
|
||||||
|
<span>提供CDN加速/云存储服务</span>
|
||||||
|
</a>
|
||||||
|
<!-- 华为云 -->
|
||||||
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.yunzhichi && theme.config.footer.footerContent.default_enable_group.yunzhichi_list == 'huawei_cloud'}"
|
||||||
|
class="footer-banner-link cloud" href="https://www.huaweicloud.com/"
|
||||||
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
|
target="_blank">
|
||||||
|
<span>本网站由</span>
|
||||||
|
<img th:src="${assets_link + '/images/footer/huawei.png'}" alt="huawei_cloud" class="entered loading cloud" />
|
||||||
|
<span>提供CDN加速/云存储服务</span>
|
||||||
|
</a>
|
||||||
|
<!-- 自定义云服务信息 -->
|
||||||
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.yunzhichi && theme.config.footer.footerContent.default_enable_group.yunzhichi_list == 'custom_cloud' && not #strings.isEmpty(theme.config.footer.footerContent.default_enable_group.yunzhichi_url)}"
|
||||||
|
class="footer-banner-link cloud" th:href="@{${theme.config.footer.footerContent.default_enable_group.yunzhichi_url_link}}"
|
||||||
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
|
target="_blank">
|
||||||
|
<span>本网站由</span>
|
||||||
|
<img th:src="@{${theme.config.footer.footerContent.default_enable_group.yunzhichi_url}}" alt="custom_cloud" class="entered loading cloud"/>
|
||||||
|
<span>提供CDN加速/云存储服务</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
<!-- 订阅 需要 RSS 插件支持 -->
|
<!-- 订阅 需要 RSS 插件支持 -->
|
||||||
<a class="footer-banner-link" href="/rss.xml" th:if="${pluginFinder.available('PluginFeed')} and ${theme.config.footer.footerContent.dingyue}">订阅</a>
|
<a class="footer-banner-link" href="/rss.xml" th:if="${pluginFinder.available('PluginFeed')} and ${theme.config.footer.footerContent.default_enable_group.dingyue}">订阅</a>
|
||||||
<a th:if="${theme.config.footer.footerContent.zhuti}" class="footer-banner-link" href="https://github.com/liuzhihang/halo-theme-hao">主题</a>
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.zhuti}" class="footer-banner-link" href="https://github.com/liuzhihang/halo-theme-hao">主题</a>
|
||||||
<a th:if="${theme.config.footer.footerContent.about}" class="footer-banner-link" href="/about">关于</a>
|
<a th:if="${theme.config.footer.footerContent.default_enable_group.about}" class="footer-banner-link" href="/about">关于</a>
|
||||||
<a th:if="${not #strings.isEmpty(theme.config.basics.icp) && theme.config.footer.footerContent.icp_icon}"
|
<a th:if="${not #strings.isEmpty(theme.config.basics.icp) && theme.config.footer.footerContent.default_enable_group.icp_icon}"
|
||||||
class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index"
|
class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index"
|
||||||
rel="noopener external nofollow noreferrer noopener"
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
|
@ -131,7 +178,7 @@
|
||||||
<img th:if="${#strings.startsWith(theme.config.basics.icp, 'http')}"
|
<img th:if="${#strings.startsWith(theme.config.basics.icp, 'http')}"
|
||||||
th:src="@{${theme.config.basics.icp}}" alt="icp"/>
|
th:src="@{${theme.config.basics.icp}}" alt="icp"/>
|
||||||
</a>
|
</a>
|
||||||
<a th:if="${not #strings.isEmpty(theme.config.basics.gongan) && theme.config.footer.footerContent.gongwangan}"
|
<a th:if="${not #strings.isEmpty(theme.config.basics.gongan) && theme.config.footer.footerContent.default_enable_group.gongwangan}"
|
||||||
class="footer-banner-link" href="http://www.beian.gov.cn/portal/registerSystemInfo"
|
class="footer-banner-link" href="http://www.beian.gov.cn/portal/registerSystemInfo"
|
||||||
rel="noopener external nofollow noreferrer noopener"
|
rel="noopener external nofollow noreferrer noopener"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
|
@ -140,7 +187,7 @@
|
||||||
th:src="@{${theme.config.basics.gongan}}" alt="gongan"/>
|
th:src="@{${theme.config.basics.gongan}}" alt="gongan"/>
|
||||||
</a>
|
</a>
|
||||||
<a class="footer-banner-link cc" th:href="${theme.config.basics.copyrightAgreement}"
|
<a class="footer-banner-link cc" th:href="${theme.config.basics.copyrightAgreement}"
|
||||||
th:if="${not #strings.isEmpty(theme.config.basics.copyrightAgreement) && theme.config.footer.footerContent.yingsi}" title="cc协议">
|
th:if="${not #strings.isEmpty(theme.config.basics.copyrightAgreement) && theme.config.footer.footerContent.default_enable_group.yingsi}" title="cc协议">
|
||||||
<i class="haofont hao-icon-copyright-line"></i>
|
<i class="haofont hao-icon-copyright-line"></i>
|
||||||
<i class="haofont hao-icon-creative-commons-by-line"></i>
|
<i class="haofont hao-icon-creative-commons-by-line"></i>
|
||||||
<i class="haofont hao-icon-creative-commons-nc-line"></i>
|
<i class="haofont hao-icon-creative-commons-nc-line"></i>
|
||||||
|
@ -166,4 +213,14 @@
|
||||||
<!--评论弹幕弹窗 -->
|
<!--评论弹幕弹窗 -->
|
||||||
<div class="comment-barrage needEndHide" style="display: none;"></div>
|
<div class="comment-barrage needEndHide" style="display: none;"></div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
a.footer-banner-link.cloud {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
img.entered.loading.cloud {
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
locale: [[${not #strings.isEmpty(theme.config.comments.walines.locale) ? theme.config.comments.walines.locale : '' }]]
|
locale: [[${not #strings.isEmpty(theme.config.comments.walines.locale) ? theme.config.comments.walines.locale : '' }]]
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
default_enable: [[${theme.config.footer.footerContent.default_enable}]]
|
default_enable: [[${theme.config.footer.footerContent.default_enable_group.default_enable}]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,5 +51,5 @@ spec:
|
||||||
repo: https://githubfast.com/liuzhihang/halo-theme-hao
|
repo: https://githubfast.com/liuzhihang/halo-theme-hao
|
||||||
settingName: "theme-hao-setting"
|
settingName: "theme-hao-setting"
|
||||||
configMapName: "theme-hao-configMap"
|
configMapName: "theme-hao-configMap"
|
||||||
version: "1.4.5"
|
version: "1.4.5.7"
|
||||||
require: ">=2.10.0"
|
require: ">=2.10.0"
|
||||||
|
|
Loading…
Reference in New Issue