Compare commits

...

5 Commits

Author SHA1 Message Date
70f94ede36 1.增加爱发电地址配置
2.修改版本号为1.0.4-ce
2025-05-25 16:34:07 +08:00
5be073fea1 关于页面中的赞赏名单模块中的头像样式增加默认高度 2025-05-15 14:54:11 +08:00
525c3f539d 更新使用文档链接 2025-04-01 16:42:47 +08:00
262c63f67f 修改“瞬间”区域显示宽度 2025-03-17 00:08:22 +08:00
1f98475e77 更新主题默认配置参数 2025-01-08 15:09:27 +08:00
6 changed files with 53 additions and 47 deletions

View File

@ -69,7 +69,7 @@
## 📝 使用
<a href="https://blog.uptoz.cn/docs/hao-ce" target="_blank" rel="noopener noreferrer">Halo-Theme-Hao Document</a>
<a href="https://doc.uptoz.cn/web/#/679612720" target="_blank" rel="noopener noreferrer">Halo-Theme-Hao Document</a>
## 💰 赞助

View File

@ -18,13 +18,13 @@ spec:
name: siteStartTime
label: 建站时间
validation: required
value: "2023-08-05"
value: "2025-01-01"
help: 注意,此项为必填项
- $formkit: text
name: icp
label: ICP 备案
placeholder: 请输入 ICP 备案号
help: 格式:ICP备 xxxxxxxx 号
help: 格式:ICP备 xxxxxxxx 号
- $formkit: text
name: gongan
label: 公安备案
@ -212,7 +212,7 @@ spec:
if: $get(enable_above).value && $get(enable_above_video).value == false
label: PC背景图
placeholder: 请填写背景图地址
value: https://www.dmoe.cc/random.php
value: https://bing.img.run/rand_1366x768.php
- $formkit: attachment
name: phone_index_img
if: $get(enable_above).value && $get(enable_above_video).value == false
@ -237,7 +237,7 @@ spec:
if: $get(enable_background_img).value && $get(enable_above).value == false
label: PC背景图
placeholder: 请填写背景图地址
value: https://www.dmoe.cc/random.php
value: https://bing.img.run/rand_1366x768.php
- $formkit: attachment
name: phone_index_background_img
if: $get(enable_background_img).value && $get(enable_above).value == false
@ -415,7 +415,7 @@ spec:
todayRecommendContent:
todayRecommendUrl: /
todayRecommendTitle: Halo-Theme-Hao
todayRecommendCover: https://liuzhihang.com/upload/hao_dark.jpg
todayRecommendCover: https://api.minio.uptoz.cn/blog/images/8chxGfZTl6.webp
todayRecommendxTitle: 今日推荐
recommendPost: latest
children:
@ -459,7 +459,7 @@ spec:
name: todayRecommendCover
label: 背景图
placeholder: 请输入地址
value: https://liuzhihang.com/upload/hao_dark.jpg
value: https://api.minio.uptoz.cn/blog/images/8chxGfZTl6.webp
- $formkit: select
name: recommendPost
id: recommendPost
@ -598,7 +598,7 @@ spec:
- $formkit: url
name: postRandomImg
label: 随机封面
value: https://source.unsplash.com/random/600x400/?blog,scenery,night,desert,sea
value: https://bing.img.run/rand_1366x768.php
help: 未设置文章封面时,将使用随机封面 (二次元随机图地址https://www.dmoe.cc/random.php)
- $formkit: radio
name: articleCardPolish
@ -678,7 +678,7 @@ spec:
name: stickerImg
if: $get(profileStyle).value == 'one'
label: 贴纸
value: https://kunkunyu.com/upload/omxo3N22290781690363822143.png
value: https://api.minio.uptoz.cn/blog/images/URZXUAqYvd.gif
placeholder: 请输入图片地址
- $formkit: text
if: $get(profileStyle).value == 'one'
@ -753,6 +753,10 @@ spec:
url: /apis/api.plugin.halo.run/v1alpha1/plugins/plugin-afdian/afdian/getSponsorList
showNum: 3
children:
- $formkit: url
name: powerAddress
label: 爱发电地址
help: https://ifdian.net
- $formkit: url
name: powerLink
label: 赞助地址
@ -984,8 +988,8 @@ spec:
label: 了解更多
value:
footer_bar_enable: false
logo: "困困鱼"
description: "来自 困困鱼 最新设计与科技的文章"
logo: "小小笔记大大用处"
description: "来自 小小笔记大大用处 最新设计与科技的文章"
children:
- $formkit: radio
name: footer_bar_enable
@ -1012,14 +1016,14 @@ spec:
label: 社交媒体
value:
socialMediaLeft:
centerImg: https://liuzhihang.com/upload/logo.png
centerImg: /themes/theme-hao/assets/images/hao-logo.jpg
socialMediaRight:
children:
- $formkit: attachment
name: centerImg
label: 中间 logo
placeholder: 请填写 logo 图片地址
value: https://liuzhihang.com/upload/logo.png
value: /themes/theme-hao/assets/images/hao-logo.jpg
- $formkit: repeater
name: socialMediaLeft
label: 左侧
@ -1116,14 +1120,14 @@ spec:
style_one:
owner_enable: false
runtime_enable: true
work_img: "https://kunkunyu.com/upload/%E5%9B%B0%E5%9B%B0%E9%B1%BC-%E4%B8%8B%E7%8F%AD%E5%95%A6-yellowgreen.svg"
work_img: "https://api.minio.uptoz.cn/blog/images/OQl35H9OeG.gif"
work_description: "距离月入25k也就还差一个大佬带我~"
offduty_img: "https://kunkunyu.com/upload/%E5%9B%B0%E5%9B%B0%E9%B1%BC-%E4%B8%8B%E7%8F%AD%E5%95%A6-yellowgreen.svg"
offduty_img: "https://api.minio.uptoz.cn/blog/images/MhuW7t9DvF.gif"
offduty_description: "下班了就该开开心心的玩耍,嘿嘿~"
bdageitem_enable: false
bdageitem:
- link: "https://halo.run/"
shields: "https://npm.onmicrosoft.cn/hao-theme-static@1.3.6/images/Frame-Halo-blue.svg"
shields: "https://api.minio.uptoz.cn/blog/images/6MnODPIGgm.svg"
message: "博客框架为halo2.x"
children:
- $formkit: group
@ -1328,7 +1332,7 @@ spec:
label: 徽标
placeholder: 请输入内容
validation: required
value: "https://npm.onmicrosoft.cn/hao-theme-static@1.3.6/images/Frame-Halo-blue.svg"
value: "https://api.minio.uptoz.cn/blog/images/6MnODPIGgm.svg"
- $formkit: text
name: message
label: 徽标 title
@ -1387,7 +1391,7 @@ spec:
name: gptName
label: 名称
placeholder: 请输入内容
value: KunKunYu
value: UPToZ
- $formkit: radio
if: $get(aiDescriptionEnable).value
name: mode
@ -1414,7 +1418,7 @@ spec:
name: btnLink
label: 链接地址
placeholder: 输入链接地址
value: https://afdian.net/item/f18c2e08db4411eda2f25254001e7c00
value: https://ifdian.net/item/f18c2e08db4411eda2f25254001e7c00
- $formkit: number
if: $get(aiDescriptionEnable).value
name: randomNum
@ -1555,7 +1559,7 @@ spec:
help: 需要在发布文章时的元数据上选显示版权声明才可以生效
value:
enable: true
content: '本文是原创文章,采用 <a target="_blank" href="/cc">CC BY-NC-ND 4.0</a> 协议,完整转载请注明来自 <a href="/" target="_blank" >程序员小航</a>'
content: '本文是原创文章,采用 <a target="_blank" href="/cc">CC BY-NC-ND 4.0</a> 协议,完整转载请注明来自 <a href="/" target="_blank" >小小笔记大大用处</a>'
reprintContent: '本文是转载文章,版权归原作者所有。建议访问原文,转载本文请联系原作者。'
children:
- $formkit: radio
@ -1577,7 +1581,7 @@ spec:
- $formkit: code
name: content
label: 原创声明内容
placeholder: '本文是原创文章,采用 <a target="_blank" href="/cc">CC BY-NC-ND 4.0</a> 协议,完整转载请注明来自 <a href="/" target="_blank" >程序员小航</a>'
placeholder: '本文是原创文章,采用 <a target="_blank" href="/cc">CC BY-NC-ND 4.0</a> 协议,完整转载请注明来自 <a href="/" target="_blank" >小小笔记大大用处</a>'
height: 120px
language: html
help: 支持 HTML 语法
@ -1617,7 +1621,7 @@ spec:
- $formkit: attachment
name: backgroundImg
label: 背景图
value: https://liuzhihang.com/upload/moments.png
value: https://api.minio.uptoz.cn/blog/images/dSb2t0y3Xo.webp
placeholder: 请输入图片地址
- $formkit: text
name: smallTitle
@ -1795,7 +1799,7 @@ spec:
- $formkit: attachment
name: backgroundImg
label: 背景图
value: https://liuzhihang.com/upload/moments.png
value: https://api.minio.uptoz.cn/blog/images/BvoNPO1LOA.webp
placeholder: 请输入图片地址
- $formkit: text
name: smallTitle
@ -1856,22 +1860,22 @@ spec:
name: cover
label: 头部图片
placeholder: 请输入内容
value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/violet.jpg"
value: "https://api.minio.uptoz.cn/blog/images/8chxGfZTl6.webp"
- $formkit: attachment
name: line
label: 底部图片
placeholder: 请输入内容
value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/line.png"
value: "https://api.minio.uptoz.cn/blog/images/AieWkEuVVE.webp"
- $formkit: attachment
name: beforeimg
label: 前半部分图片
placeholder: 请输入内容
value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/before.png"
value: "https://api.minio.uptoz.cn/blog/images/FZiRasbTnb.webp"
- $formkit: attachment
name: afterimg
label: 后半部分图片
placeholder: 请输入内容
value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/after.png"
value: "https://api.minio.uptoz.cn/blog/images/GpohBvaNdR.webp"
- $formkit: repeater
name: messageList
if: $get(enable_envelope_comment).value
@ -1963,7 +1967,7 @@ spec:
- $formkit: code
name: content
label: 我的介绍
value: <div class="title1">你好,很高兴认识你👋</div> <div class="title2">我叫 <span class="inline-word">程序员小航</span></div> <div class="title1">是一名 前端开发工程师、后端开发工程师、全干工程师</div>
value: <div class="title1">你好,很高兴认识你👋</div> <div class="title2">我叫 <span class="inline-word">UPToZ</span></div> <div class="title1">是一名 前端开发工程师、后端开发工程师、全干工程师</div>
height: 200px
language: html
help: 支持 HTML 语法
@ -2046,7 +2050,7 @@ spec:
- $formkit: attachment
name: authorCareersPhoto
label: 图片
value: https://liuzhihang.com/upload/recommend.png
value: https://api.minio.uptoz.cn/blog/images/Y7R8M3aYkY.webp
- $formkit: repeater
name: textarea
label: 文本块
@ -2078,9 +2082,9 @@ spec:
label: 爱好游戏 1
value:
game_tips: 爱好游戏
game_title: 英雄联盟
game_uid: 比尔吉沃特
game_bg: https://img.zhheo.com/i/2022/08/31/630efa7ae39fe.webp
game_title: 王者荣耀
game_uid: 宠幸 | 苹果手 Q2 区 | Lv.30
game_bg: https://api.minio.uptoz.cn/blog/images/F3P1a6aIYk.webp
loading_bar: https://npm.onmicrosoft.cn/hao-theme-static@1.3.6/images/64795eaece0fc.png
children:
- $formkit: text
@ -2109,9 +2113,9 @@ spec:
value:
game2_type: img
game2_tips: 爱好游戏
game2_title: 狼人杀
game2_uid: ID 1333E3FF
game2_bg: https://img.zhheo.com/i/2022/08/31/630efa916a851.webp
game2_title: 穿越火线
game2_uid: UPToZ_ | 广东二区
game2_bg: https://api.minio.uptoz.cn/blog/images/5HgVAu5KVs.webp
children:
- $formkit: radio
name: game2_type
@ -2166,7 +2170,7 @@ spec:
like_tips: 关注偏好
like_title: 数码科技
like_bottom: 手机、电脑软硬件
like_bg: https://img.zhheo.com/i/2022/08/31/630efac3ecef3.webp
like_bg: https://api.minio.uptoz.cn/blog/images/0fLBtebnt3.webp
children:
- $formkit: text
name: like_tips
@ -2189,9 +2193,9 @@ spec:
label: 音乐偏好
value:
music_tips: 音乐偏好
music_title: Hiphop、民谣、华语流行
music_title: 经典
music_link:
music_bg: https://img.zhheo.com/i/2022/08/31/630efae141e9a.webp
music_bg: https://api.minio.uptoz.cn/blog/images/YD986YiOPL.webp
children:
- $formkit: text
name: music_tips
@ -2271,8 +2275,8 @@ spec:
tenyear_tips: 始终如一,不离不弃
tenyear_title: 十年之约
tenyear_content: 在这个十年中,我会用心感受生活的美好,用努力书写工作的篇章,用行动诠释人生的意义。这个进度条,不仅是数字的积累,更是我心中的期许和承诺。我相信,经过十年的坚持和努力,我会收获更多,成为一个更好的自己。
start_time: "2023-11-22"
end_time: "2033-11-22"
start_time: "2025-01-01"
end_time: "2035-01-01"
children:
- $formkit: radio
name: tenyear_enable
@ -3143,7 +3147,7 @@ spec:
label: 加载动画
value:
loadingBoxEnable: true
loadingBoxImg: https://liuzhihang.com/upload/logo.png
loadingBoxImg: https://api.minio.uptoz.cn/blog/images/P0fVpvjJBS.gif
loadProgressBar: true
children:
- $formkit: radio
@ -3289,7 +3293,7 @@ spec:
label: 首页置顶广告
value:
enable: false
index_top_adv_url: "https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=ck9px1df"
index_top_adv_url: "https://www.aliyun.com/daily-act/ecs/activity_selection?source=5176.11533457&userCode=ud0msscf"
index_top_adv_img: https://img.alicdn.com/imgextra/i3/O1CN01Tbj8qb1w835uueixH_!!6000000006262-2-tps-3840-120.png
children:
- $formkit: radio

View File

@ -374,11 +374,11 @@ let halo = {
},
getTopSponsors() {
var address = GLOBAL_CONFIG.source.power.powerAddress;
var show_num = GLOBAL_CONFIG.source.power.showNum;
var url = GLOBAL_CONFIG.source.power.url;
function getPower() {
const url = GLOBAL_CONFIG.source.power.url;
let powerStar = document.getElementById("power-star")
powerStar.href = GLOBAL_CONFIG.source.power.powerLink
fetch(url)
@ -429,7 +429,7 @@ let halo = {
</div>`;
} else {
if (powerStar) {
powerStar.href = "https://ifdian.net/u/" + data[0]["user"].user_id
powerStar.href = address + "/u/" + data[0]["user"].user_id
powerStar.innerHTML = `
<div id="power-star-image" style="background-image: url(${data[0]["user"].avatar})">
</div>
@ -447,7 +447,7 @@ let halo = {
break;
}
htmlText +=
` <a href="${"https://ifdian.net/u/" + value["user"]["user_id"]}" rel="external nofollow" target="_blank" th:title="${value["user"]["name"]}">${value["user"]["name"]}</a>`;
` <a href="${address+"/u/" + value["user"]["user_id"]}" rel="external nofollow" target="_blank" th:title="${value["user"]["name"]}">${value["user"]["name"]}</a>`;
i = i + 1;
}
if (document.getElementById("power-item-link")) {

View File

@ -8538,7 +8538,7 @@ a.categoryButton:hover {
#bber-talk .li-style {
width: 90%;
max-width: 500px;
/* max-width: 500px; */
height: 25px;
text-align: center;
overflow: hidden;
@ -16435,6 +16435,7 @@ span.hexo-douban-pagenum {
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar img {
border-radius: 50%;
width: 80px;
height: 80px;
/* margin-top: 0.4rem; */
}

View File

@ -56,6 +56,7 @@
},
source: {
power: {
powerAddress: [[${theme.config.sidebar.power.powerAddress}]],
powerLink: [[${theme.config.sidebar.power.powerLink}]],
url: [[${theme.config.sidebar.power.url}]],
showNum: [[${theme.config.sidebar.power.showNum}]]

View File

@ -52,7 +52,7 @@ spec:
issues: https://gitee.com/uptoz/halo-theme-hao/issues
settingName: "theme-hao-setting"
configMapName: "theme-hao-configMap"
version: "1.0.3-ce"
version: "1.0.4-ce"
require: ">=2.20.0"
license:
- name: "CC BY-SA 4.0"