Merge remote-tracking branch 'origin/main'

This commit is contained in:
1152958806@qq.com 2023-10-13 22:11:23 +08:00
commit e790501e58
10 changed files with 78 additions and 107 deletions

View File

@ -6,9 +6,9 @@
<!-- 主题徽章 --> <!-- 主题徽章 -->
<p align="center"> <p align="center">
<!-- halo版本 --> <!-- halo版本 -->
<a href="https://github.com/halo-dev/halo"><img alt="Halo version" src="https://img.shields.io/badge/dynamic/yaml?label=Halo&query=%24.spec.require&url=https://raw.githubusercontent.com/liuzhihang/halo-theme-hao/master/theme.yaml&logo=data:image/webp;base64,UklGRvIIAABXRUJQVlA4WAoAAAAwAAAA/wAA/wAASUNDUFQCAAAAAAJUbGNtcwQwAABtbnRyUkdCIFhZWiAH5QADAAQACAA3AAlhY3NwTVNGVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAAD5jcHJ0AAABSAAAAEx3dHB0AAABlAAAABRjaGFkAAABqAAAACxyWFlaAAAB1AAAABRiWFlaAAAB6AAAABRnWFlaAAAB/AAAABRyVFJDAAACEAAAACBnVFJDAAACEAAAACBiVFJDAAACEAAAACBjaHJtAAACMAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACIAAAAcAHMAUgBHAEIAIABJAEUAQwA2ADEAOQA2ADYALQAyAC4AMQAAbWx1YwAAAAAAAAABAAAADGVuVVMAAAAwAAAAHABOAG8AIABjAG8AcAB5AHIAaQBnAGgAdAAsACAAdQBzAGUAIABmAHIAZQBlAGwAeVhZWiAAAAAAAAD21gABAAAAANMtc2YzMgAAAAAAAQxCAAAF3v//8yUAAAeTAAD9kP//+6H///2iAAAD3AAAwG5YWVogAAAAAAAAb6AAADj1AAADkFhZWiAAAAAAAAAknwAAD4QAALbDWFlaIAAAAAAAAGKXAAC3hwAAGNlwYXJhAAAAAAADAAAAAmZmAADypwAAD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ZgIS7eDxC6LRdpDIwAAIP22FpWD20MUaMZUV4O2j7OMOXqw73gqjlFXwiGI+dE/OtQlDW0AAACd3139g1eb/QnyZDtJ+9RY/ISzYyAc1i35n/xjsd1sGId8gAA" /></a> <a href="https://githubfast.com/halo-dev/halo"><img alt="Halo version" src="https://img.shields.io/badge/dynamic/yaml?label=Halo&query=%24.spec.require&url=https://usercontent.githubfast.com/raw/liuzhihang/halo-theme-hao/master/theme.yaml&logo=data:image/webp;base64,UklGRvIIAABXRUJQVlA4WAoAAAAwAAAA/wAA/wAASUNDUFQCAAAAAAJUbGNtcwQwAABtbnRyUkdCIFhZWiAH5QADAAQACAA3AAlhY3NwTVNGVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAAD5jcHJ0AAABSAAAAEx3dHB0AAABlAAAABRjaGFkAAABqAAAACxyWFlaAAAB1AAAABRiWFlaAAAB6AAAABRnWFlaAAAB/AAAABRyVFJDAAACEAAAACBnVFJDAAACEAAAACBiVFJDAAACEAAAACBjaHJtAAACMAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACIAAAAcAHMAUgBHAEIAIABJAEUAQwA2ADEAOQA2ADYALQAyAC4AMQAAbWx1YwAAAAAAAAABAAAADGVuVVMAAAAwAAAAHABOAG8AIABjAG8AcAB5AHIAaQBnAGgAdAAsACAAdQBzAGUAIABmAHIAZQBlAGwAeVhZWiAAAAAAAAD21gABAAAAANMtc2YzMgAAAAAAAQxCAAAF3v//8yUAAAeTAAD9kP//+6H///2iAAAD3AAAwG5YWVogAAAAAAAAb6AAADj1AAADkFhZWiAAAAAAAAAknwAAD4QAALbDWFlaIAAAAAAAAGKXAAC3hwAAGNlwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR7A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OMOXqw73gqjlFXwiGI+dE/OtQlDW0AAACd3139g1eb/QnyZDtJ+9RY/ISzYyAc1i35n/xjsd1sGId8gAA" /></a>
<!-- 下载总数 --> <!-- 下载总数 -->
<a href="https://github.com/liuzhihang/halo-theme-hao/releases"><img alt="size" src="https://img.shields.io/github/downloads/liuzhihang/halo-theme-hao/total.svg?style=flat-square""/></a> <a href="https://githubfast.com/liuzhihang/halo-theme-hao/releases"><img alt="size" src="https://img.shields.io/github/downloads/liuzhihang/halo-theme-hao/total.svg?style=flat-square""/></a>
<!-- 许可协议 --> <!-- 许可协议 -->
<a href="./LICENSE"><img alt="LICENSE" src="https://img.shields.io/badge/license-GPL-yellow.svg"></a> <a href="./LICENSE"><img alt="LICENSE" src="https://img.shields.io/badge/license-GPL-yellow.svg"></a>
</p> </p>
@ -40,23 +40,23 @@
| 小孙同学 | https://blog.sunguoqi.com | | 小孙同学 | https://blog.sunguoqi.com |
| 流殃 | https://shyblog.world | | 流殃 | https://shyblog.world |
| 羡羡 | https://www.hydsb0.com/ | | 羡羡 | https://www.hydsb0.com/ |
| 困困鱼 | https://0206.ink | | 困困鱼 | https://kunkunyu.com |
| Top John | https://op-lab.top | | Top John | https://op-lab.top |
| Roozen | https://roozen.top | | Roozen | https://roozen.top |
| Lanbin | https://lib.lanbin.top | | Lanbin | https://lib.lanbin.top |
## 👋 简介 ## 👋 简介
[Halo-Theme-Hao](https://github.com/liuzhihang/halo-theme-hao) 是一款适用于 [Halo2.x](https://github.com/halo-dev/halo) 的博客主题。 [Halo-Theme-Hao](https://githubfast.com/liuzhihang/halo-theme-hao) 是一款适用于 [Halo2.x](https://githubfast.com/halo-dev/halo) 的博客主题。
移植自 [Hexo](https://hexo.io/zh-cn/index.html) 社区中 [张洪 Heo](https://blog.zhheo.com/) 移植自 [Hexo](https://hexo.io/zh-cn/index.html) 社区中 [张洪 Heo](https://blog.zhheo.com/)
对 [Hexo-Theme-Butterfly](https://github.com/liuzhihang/halo-theme-hao) 对 [Hexo-Theme-Butterfly](https://githubfast.com/liuzhihang/halo-theme-hao)
主题的魔改版本。 主题的魔改版本。
## 🚨 注意事项(看我看我) ## 🚨 注意事项(看我看我)
1. **建站时间必填** 1. **建站时间必填**
2. 如果安装主题后报错,请仔细查阅[主题说明](https://github.com/liuzhihang/halo-theme-hao)与[更新说明](https://github.com/liuzhihang/halo-theme-hao/releases) 2. 如果安装主题后报错,请仔细查阅[主题说明](https://githubfast.com/liuzhihang/halo-theme-hao)与[更新说明](https://githubfast.com/liuzhihang/halo-theme-hao/releases)
3. 如果还未解决,可以加群求助!!! 3. 如果还未解决,可以加群求助!!!
4. 如果群友也解决不了再考虑提ISSUE 4. 如果群友也解决不了再考虑提ISSUE
5. `1.3.1`及以上版本需要`Halo`版本>=`2.8.0` 5. `1.3.1`及以上版本需要`Halo`版本>=`2.8.0`
@ -74,7 +74,7 @@
#### 🚂 本地安装 #### 🚂 本地安装
1. 在 [ Release](https://github.com/liuzhihang/halo-theme-hao/releases) 页面 `下载` 最新主题包 (zip) 1. 在 [ Release](https://githubfast.com/liuzhihang/halo-theme-hao/releases) 页面 `下载` 最新主题包 (zip)
2. 进入 Halo 后台 -> 主题 (左侧面板) 2. 进入 Halo 后台 -> 主题 (左侧面板)
3. 点击右上角 “主题”, 在弹出的窗口中选择 `安装主题` 3. 点击右上角 “主题”, 在弹出的窗口中选择 `安装主题`
4. 选择下载好的主题包zip 4. 选择下载好的主题包zip
@ -82,7 +82,7 @@
#### 🛸 远程安装 #### 🛸 远程安装
1. 复制地址 `https://github.com/liuzhihang/halo-theme-hao` 1. 复制地址 `https://githubfast.com/liuzhihang/halo-theme-hao`
2. 进入Halo后台 -> 外观 -> 主题 (左侧面板) 2. 进入Halo后台 -> 外观 -> 主题 (左侧面板)
3. 点击右上方 `安装` 按钮, 然后选择 `远程下载` 3. 点击右上方 `安装` 按钮, 然后选择 `远程下载`
4. 在文本框中粘贴仓库地址后点击下载 4. 在文本框中粘贴仓库地址后点击下载
@ -92,16 +92,16 @@
> 部分插件可能已经预设在 Halo 内。 > 部分插件可能已经预设在 Halo 内。
> 部分插件主题尚未适配。 > 部分插件主题尚未适配。
- 评论功能 [plugin-comment-widget](https://github.com/halo-sigs/plugin-comment-widget/releases) - 评论功能 [plugin-comment-widget](https://githubfast.com/halo-sigs/plugin-comment-widget/releases)
- 搜索功能 [plugin-search-widget](https://github.com/halo-sigs/plugin-search-widget/releases) - 搜索功能 [plugin-search-widget](https://githubfast.com/halo-sigs/plugin-search-widget/releases)
- 友链页面 [plugin-links](https://github.com/halo-sigs/plugin-links) - 友链页面 [plugin-links](https://githubfast.com/halo-sigs/plugin-links)
- 瞬间页面 [plugin-moments](https://github.com/halo-sigs/plugin-moments) - 瞬间页面 [plugin-moments](https://githubfast.com/halo-sigs/plugin-moments)
- 代码高亮 [plugin-prismjs](https://github.com/liuzhihang/plugin-prismjs) - 代码高亮 [plugin-prismjs](https://githubfast.com/liuzhihang/plugin-prismjs)
- 追番插件 [plugin-bilibili-bangumi](https://github.com/Roozenlz/plugin-bilibili-bangumi) - 追番插件 [plugin-bilibili-bangumi](https://githubfast.com/Roozenlz/plugin-bilibili-bangumi)
- 图库插件 [plugin-photos](https://github.com/halo-sigs/plugin-photos) - 图库插件 [plugin-photos](https://githubfast.com/halo-sigs/plugin-photos)
- 主题标签 [plugin-haotag](https://github.com/chengzhongxue/plugin-haotag) - 主题标签 [plugin-haotag](https://githubfast.com/chengzhongxue/plugin-haotag)
> 更多插件请参见https://github.com/halo-sigs/awesome-halo > 更多插件请参见https://githubfast.com/halo-sigs/awesome-halo
## 📝 使用 ## 📝 使用
@ -109,7 +109,7 @@
## 🔐 许可 ## 🔐 许可
[Halo-Theme-Hao](https://github.com/liuzhihang/halo-theme-hao) 使用 [GPL-v3.0](./LICENSE) 协议开源,请遵守开源协议。 [Halo-Theme-Hao](https://githubfast.com/liuzhihang/halo-theme-hao) 使用 [GPL-v3.0](./LICENSE) 协议开源,请遵守开源协议。
## 💬 讨论 ## 💬 讨论
@ -129,7 +129,7 @@
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)) :) Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)) :)
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! This project follows the [all-contributors](https://githubfast.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-) [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-)
@ -141,30 +141,30 @@ This project follows the [all-contributors](https://github.com/all-contributors/
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td align="center" valign="top" width="16.66%"><a href="https://liuzhihang.com/"><img src="https://avatars.githubusercontent.com/u/26057042?v=4?s=100" width="100px;" alt="liuzhihang"/><br /><sub><b>liuzhihang</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=liuzhihang" title="Code">💻</a> <a href="#tutorial-liuzhihang" title="Tutorials"></a></td> <td align="center" valign="top" width="16.66%"><a href="https://liuzhihang.com/"><img src="https://usercontent.githubfast.com/avatars/u/26057042?v=4?s=100" width="100px;" alt="liuzhihang"/><br /><sub><b>liuzhihang</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=liuzhihang" title="Code">💻</a> <a href="#tutorial-liuzhihang" title="Tutorials"></a></td>
<td align="center" valign="top" width="16.66%"><a href="https://shyblog.world/"><img src="https://avatars.githubusercontent.com/u/50973219?v=4?s=100" width="100px;" alt="sunheyi"/><br /><sub><b>sunheyi</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=shy-share" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://shyblog.world/"><img src="https://usercontent.githubfast.com/avatars/u/50973219?v=4?s=100" width="100px;" alt="sunheyi"/><br /><sub><b>sunheyi</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=shy-share" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Joydevelop"><img src="https://avatars.githubusercontent.com/u/79132319?v=4?s=100" width="100px;" alt="Joy"/><br /><sub><b>Joy</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=Joydevelop" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://githubfast.com/Joydevelop"><img src="https://usercontent.githubfast.com/avatars/u/79132319?v=4?s=100" width="100px;" alt="Joy"/><br /><sub><b>Joy</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=Joydevelop" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://johnniang.me"><img src="https://avatars.githubusercontent.com/u/16865714?v=4?s=100" width="100px;" alt="John Niang"/><br /><sub><b>John Niang</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=JohnNiang" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://johnniang.me"><img src="https://usercontent.githubfast.com/avatars/u/16865714?v=4?s=100" width="100px;" alt="John Niang"/><br /><sub><b>John Niang</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=JohnNiang" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://lanbinovo.cn"><img src="https://avatars.githubusercontent.com/u/62149873?v=4?s=100" width="100px;" alt="Lanbin"/><br /><sub><b>Lanbin</b></sub></a><br /><a href="#tutorial-lanbinshijie" title="Tutorials"></a></td> <td align="center" valign="top" width="16.66%"><a href="https://lanbinovo.cn"><img src="https://usercontent.githubfast.com/avatars/u/62149873?v=4?s=100" width="100px;" alt="Lanbin"/><br /><sub><b>Lanbin</b></sub></a><br /><a href="#tutorial-lanbinshijie" title="Tutorials"></a></td>
<td align="center" valign="top" width="16.66%"><a href="https://blog.sunguoqi.com/"><img src="https://avatars.githubusercontent.com/u/79169717?v=4?s=100" width="100px;" alt="小孙同学"/><br /><sub><b>小孙同学</b></sub></a><br /><a href="#tutorial-sun0225SUN" title="Tutorials"></a> <a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=sun0225SUN" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://blog.sunguoqi.com/"><img src="https://usercontent.githubfast.com/avatars/u/79169717?v=4?s=100" width="100px;" alt="小孙同学"/><br /><sub><b>小孙同学</b></sub></a><br /><a href="#tutorial-sun0225SUN" title="Tutorials"></a> <a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=sun0225SUN" title="Code">💻</a></td>
</tr> </tr>
<tr> <tr>
<td align="center" valign="top" width="16.66%"><a href="http://airbozh.cn"><img src="https://avatars.githubusercontent.com/u/50261327?v=4?s=100" width="100px;" alt="airbo"/><br /><sub><b>airbo</b></sub></a><br /><a href="#tutorial-AirboZH" title="Tutorials"></a> <a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=AirboZH" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="http://airbozh.cn"><img src="https://usercontent.githubfast.com/avatars/u/50261327?v=4?s=100" width="100px;" alt="airbo"/><br /><sub><b>airbo</b></sub></a><br /><a href="#tutorial-AirboZH" title="Tutorials"></a> <a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=AirboZH" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://github.com/gadore"><img src="https://avatars.githubusercontent.com/u/18081104?v=4?s=100" width="100px;" alt="Gadore"/><br /><sub><b>Gadore</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=gadore" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://githubfast.com/gadore"><img src="https://usercontent.githubfast.com/avatars/u/18081104?v=4?s=100" width="100px;" alt="Gadore"/><br /><sub><b>Gadore</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=gadore" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://www.hydsb0.com"><img src="https://avatars.githubusercontent.com/u/64968400?v=4?s=100" width="100px;" alt="羡羡"/><br /><sub><b>羡羡</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=xyhcode" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://www.hydsb0.com"><img src="https://usercontent.githubfast.com/avatars/u/64968400?v=4?s=100" width="100px;" alt="羡羡"/><br /><sub><b>羡羡</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=xyhcode" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://github.com/chengzhongxue"><img src="https://avatars.githubusercontent.com/u/89380218?v=4?s=100" width="100px;" alt="困困鱼"/><br /><sub><b>困困鱼</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=chengzhongxue" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://githubfast.com/chengzhongxue"><img src="https://usercontent.githubfast.com/avatars/u/89380218?v=4?s=100" width="100px;" alt="困困鱼"/><br /><sub><b>困困鱼</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=chengzhongxue" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://op-lab.top"><img src="https://avatars.githubusercontent.com/u/7914367?v=4?s=100" width="100px;" alt="Top John"/><br /><sub><b>Top John</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=TopJohn" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://op-lab.top"><img src="https://usercontent.githubfast.com/avatars/u/7914367?v=4?s=100" width="100px;" alt="Top John"/><br /><sub><b>Top John</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=TopJohn" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://khbit.cn"><img src="https://avatars.githubusercontent.com/u/72146468?v=4?s=100" width="100px;" alt="BugJi"/><br /><sub><b>BugJi</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=daizihan233" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://khbit.cn"><img src="https://usercontent.githubfast.com/avatars/u/72146468?v=4?s=100" width="100px;" alt="BugJi"/><br /><sub><b>BugJi</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=daizihan233" title="Code">💻</a></td>
</tr> </tr>
<tr> <tr>
<td align="center" valign="top" width="16.66%"><a href="http://roozen.top"><img src="https://avatars.githubusercontent.com/u/93673944?v=4?s=100" width="100px;" alt="Roozen"/><br /><sub><b>Roozen</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=Roozenlz" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="http://roozen.top"><img src="https://usercontent.githubfast.com/avatars/u/93673944?v=4?s=100" width="100px;" alt="Roozen"/><br /><sub><b>Roozen</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=Roozenlz" title="Code">💻</a></td>
<td align="center" valign="top" width="16.66%"><a href="https://www.stonewu.com/"><img src="https://avatars.githubusercontent.com/u/25025423?v=4?s=100" width="100px;" alt="石头君"/><br /><sub><b>石头君</b></sub></a><br /><a href="https://github.com/liuzhihang/halo-theme-hao/commits?author=Stonewuu" title="Code">💻</a></td> <td align="center" valign="top" width="16.66%"><a href="https://www.stonewu.com/"><img src="https://usercontent.githubfast.com/avatars/u/25025423?v=4?s=100" width="100px;" alt="石头君"/><br /><sub><b>石头君</b></sub></a><br /><a href="https://githubfast.com/liuzhihang/halo-theme-hao/commits?author=Stonewuu" title="Code">💻</a></td>
</tr> </tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td align="center" size="13px" colspan="6"> <td align="center" size="13px" colspan="6">
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg"> <img src="https://usercontent.githubfast.com/raw/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg">
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a> <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
</img> </img>
</td> </td>

View File

@ -270,9 +270,6 @@ let halo = {
e.batchSend(t, !0); e.batchSend(t, !0);
else { else {
let n = []; let n = [];
function a(e) {
return e = (e = (e = (e = (e = e.replace(/<\/*br>|[\s\uFEFF\xA0]+/g, "")).replace(/<img.*?>/g, "[图片]")).replace(/<a.*?>.*?<\/a>/g, "[链接]")).replace(/<pre.*?>.*?<\/pre>/g, "[代码块]")).replace(/<.*?>/g, "")
}
if(GLOBAL_CONFIG.source.comments.use == 'Twikoo'){ if(GLOBAL_CONFIG.source.comments.use == 'Twikoo'){
fetch(GLOBAL_CONFIG.source.twikoo.twikooUrl, { fetch(GLOBAL_CONFIG.source.twikoo.twikooUrl, {
method: "POST", method: "POST",
@ -290,7 +287,7 @@ let halo = {
null == e.avatar && (e.avatar = "https://cravatar.cn/avatar/d615d5793929e8c7d70eab5f00f7f5f1?d=mp"), null == e.avatar && (e.avatar = "https://cravatar.cn/avatar/d615d5793929e8c7d70eab5f00f7f5f1?d=mp"),
n.push({ n.push({
avatar: e.avatar, avatar: e.avatar,
content: e.nick + "" + a(e.comment), content: e.nick + "" + btf.changeContent(e.comment),
href: e.url + '#' + e.id href: e.url + '#' + e.id
}) })
@ -319,7 +316,7 @@ let halo = {
t.forEach((e=>{ t.forEach((e=>{
n.push({ n.push({
avatar: 'https://cravatar.cn/avatar/' + e.email_encrypted + '?d=mp&s=240', avatar: 'https://cravatar.cn/avatar/' + e.email_encrypted + '?d=mp&s=240',
content: e.nick + "" + a(e.content_marked), content: e.nick + "" + btf.changeContent(e.content_marked),
href: e.page_url + '#atk-comment-' + e.id href: e.page_url + '#atk-comment-' + e.id
}) })
@ -338,7 +335,7 @@ let halo = {
}).then(({ comments }) => { }).then(({ comments }) => {
const walineArray = comments.map(e => { const walineArray = comments.map(e => {
return { return {
'content': e.nick + "" + a(e.comment), 'content': e.nick + "" + btf.changeContent(e.comment),
'avatar': e.avatar, 'avatar': e.avatar,
'href': e.url + '#' + e.objectId, 'href': e.url + '#' + e.objectId,
} }

View File

@ -22,6 +22,12 @@ var heo = {
// 首页bb // 首页bb
initIndexEssay: function() { initIndexEssay: function() {
if (document.querySelector("#bber-talk")) if (document.querySelector("#bber-talk"))
$(".swiper-wrapper .swiper-slide").each(function () {
var text = $(this)[0].innerText;
if (text != 'undefined') {
$(this).text(btf.changeContent(text));
}
})
new Swiper(".swiper-container",{ new Swiper(".swiper-container",{
direction: "vertical", direction: "vertical",
loop: !0, loop: !0,

View File

@ -331,6 +331,23 @@ var btf = {
} }
return actualTop return actualTop
},
//过滤标签
changeContent: (content,length = null)=>{
if (content === '') return content
content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
content = content.replace(/<[^>]+>/g, "") // remove html tag
if (length!=null){
if (content.length > length) {
content = content.substring(0, length) + '...'
}
}
return content
} }
} }

View File

@ -10,19 +10,6 @@
<!-- 最近评论 --> <!-- 最近评论 -->
<script> <script>
window.addEventListener('load', () => { window.addEventListener('load', () => {
const changeContent = (content) => {
if (content === '') return content
content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
content = content.replace(/<[^>]+>/g, "") // remove html tag
if (content.length > 150) {
content = content.substring(0, 150) + '...'
}
return content
}
const generateHtml = array => { const generateHtml = array => {
let result = '' let result = ''
@ -126,7 +113,7 @@
const artalk = d.data.map(function (e) { const artalk = d.data.map(function (e) {
return { return {
'avatar': 'https://cravatar.cn/avatar/' + e.email_encrypted + '?d=mp&s=240', 'avatar': 'https://cravatar.cn/avatar/' + e.email_encrypted + '?d=mp&s=240',
'content': changeContent(e.content_marked), 'content': btf.changeContent(e.content_marked,150),
'nick': e.nick, 'nick': e.nick,
'url': e.page_url + '#atk-comment-' + e.id, 'url': e.page_url + '#atk-comment-' + e.id,
'date': e.date, 'date': e.date,

View File

@ -9,20 +9,6 @@ not #strings.isEmpty(theme.config.comments.twikoos.envId)}">
<!-- 最近评论 --> <!-- 最近评论 -->
<script> <script>
window.addEventListener('load', () => { window.addEventListener('load', () => {
const changeContent = (content) => {
if (content === '') return content
content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
content = content.replace(/<[^>]+>/g, "") // remove html tag
if (content.length > 150) {
content = content.substring(0, 150) + '...'
}
return content
}
const getComment = () => { const getComment = () => {
const runTwikoo = () => { const runTwikoo = () => {
twikoo.getRecentComments({ twikoo.getRecentComments({
@ -33,7 +19,7 @@ not #strings.isEmpty(theme.config.comments.twikoos.envId)}">
}).then(function (res) { }).then(function (res) {
const twikooArray = res.map(e => { const twikooArray = res.map(e => {
return { return {
'content': changeContent(e.comment), 'content': btf.changeContent(e.comment,150),
'avatar': e.avatar, 'avatar': e.avatar,
'nick': e.nick, 'nick': e.nick,
'url': e.url + '#' + e.id, 'url': e.url + '#' + e.id,

View File

@ -8,20 +8,6 @@
</div> </div>
<script> <script>
window.addEventListener('load', () => { window.addEventListener('load', () => {
const changeContent = (content) => {
if (content === '') return content
content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
content = content.replace(/<[^>]+>/g, "") // remove html tag
if (content.length > 150) {
content = content.substring(0, 150) + '...'
}
return content
}
const generateHtml = array => { const generateHtml = array => {
let result = '' let result = ''
@ -63,7 +49,7 @@
}).then(({ comments }) => { }).then(({ comments }) => {
const walineArray = comments.map(e => { const walineArray = comments.map(e => {
return { return {
'content': changeContent(e.comment), 'content': btf.changeContent(e.comment,150),
'avatar': e.avatar, 'avatar': e.avatar,
'nick': e.nick, 'nick': e.nick,
'url': e.url + '#' + e.objectId, 'url': e.url + '#' + e.objectId,

View File

@ -6,29 +6,22 @@
<meta property="og:type" th:content="${_type}" /> <meta property="og:type" th:content="${_type}" />
<meta property="og:title" th:content="${_title}" /> <meta property="og:title" th:content="${_title}" />
<meta property="og:url" th:content="|${site.url}${_permalink}|" /> <meta property="og:url" th:content="|${site.url}${_permalink}|" />
<meta <th:block
th:unless="${#strings.isEmpty(_excerpt) and #strings.isEmpty(site.seo.description)}" th:with="description = ${ not #strings.isEmpty(_excerpt) ? _excerpt : not #strings.isEmpty(site.seo.description) ? site.seo.description: _title},
property="og:description" image=${not #strings.isEmpty(_cover) ? _cover : not #strings.isEmpty(site.logo) ? site.logo :'null'}">
th:content="${excerpt ?: site.seo.description}" <meta property="og:description" th:content="${description}" />
/> <meta property="og:image" th:content="${image}" />
<meta </th:block>
th:unless="${#lists.isEmpty(_cover)}"
property="og:image"
th:content="${_cover}"
/>
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" th:content="${_title}" /> <meta name="twitter:title" th:content="${_title}" />
<meta name="twitter:url" th:content="|${site.url}${_permalink}|" /> <meta name="twitter:url" th:content="|${site.url}${_permalink}|" />
<meta <th:block th:with="description = ${ not #strings.isEmpty(_excerpt) ? _excerpt : not #strings.isEmpty(site.seo.description) ? site.seo.description: _title},
th:unless="${#strings.isEmpty(_excerpt) and #strings.isEmpty(site.seo.description)}" image=${not #strings.isEmpty(_cover) ? _cover : not #strings.isEmpty(site.logo) ? site.logo :'null'}">
name="twitter:description" <meta name="twitter:description" th:content="${description}" />
th:content="${_excerpt ?: site.seo.description}" <meta name="twitter:image" th:content="${image}" />
/> </th:block>
<meta
th:unless="${#lists.isEmpty(_cover)}"
name="twitter:image"
th:content="${_cover}"
/>
<!-- Open Graph End --> <!-- Open Graph End -->
</th:block> </th:block>
</html> </html>

View File

@ -14,8 +14,6 @@
<script th:src="${assets_link + '/js/heo.js' + theme_version}"></script> <script th:src="${assets_link + '/js/heo.js' + theme_version}"></script>
<script th:src="${assets_link + '/js/halo.js' + theme_version}"></script>
<link rel="stylesheet" th:href="${assets_link + '/zhheo/zhheoblog.css' + theme_version}"> <link rel="stylesheet" th:href="${assets_link + '/zhheo/zhheoblog.css' + theme_version}">
<link rel="stylesheet" th:href="${assets_link + '/zhheo/custom.css' + theme_version}"> <link rel="stylesheet" th:href="${assets_link + '/zhheo/custom.css' + theme_version}">

View File

@ -56,6 +56,7 @@
<div> <div>
<script th:src="${assets_link + '/js/utils.js' + theme_version}"></script> <script th:src="${assets_link + '/js/utils.js' + theme_version}"></script>
<script th:src="${assets_link + '/js/halo.js' + theme_version}"></script>
<script th:src="${assets_link + '/js/main.js' + theme_version}"></script> <script th:src="${assets_link + '/js/main.js' + theme_version}"></script>
<script charset="utf-8" data-pjax th:src="${assets_link + '/zhheo/blogex.js' + theme_version}"></script> <script charset="utf-8" data-pjax th:src="${assets_link + '/zhheo/blogex.js' + theme_version}"></script>
<script th:src="${assets_link + '/js/tw_cn.js' + theme_version}"></script> <script th:src="${assets_link + '/js/tw_cn.js' + theme_version}"></script>