Skip to content

Commit

Permalink
fix: 修改社交配置默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhua committed Apr 30, 2022
1 parent f8b1ebd commit 82e671a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
#### ⚠️ 必读

> 务必保证 `Halo` 版本为 `1.4.11` 及以上版本。
1. 安装主题后请务必到 `后台管理 - 博客设置 - 高级选项` 中开启 `API服务` 并配置 `Access key``joe2.0`(切记要和主题设置中的 `AccessKey` 一致),不然部分用到 `Content API` 的页面会请求失败并报错。(请参考以下报错)

```text
Expand Down Expand Up @@ -559,7 +557,7 @@ console.log("hello world!!!");
- 首先,进入 `后台管理-外观-主题设置-其它` 一栏,找到 `CDN 域名类型`,并选择 `自定义`

- 然后,在 `自定义 CDN 域名` 一栏填填入 **配置好的可用的 CDN 域名**(CDN 域名需要你先去开通 CDN 服务,如腾讯云、阿里云、七牛云等,然后按他们的文档配置),一般会把域名配置成 `cdn.你的域名` 这种形式,切记填写的时候**要带上协议**(如 https://cdn.bbchin.com);
- 然后,在 `自定义 CDN 域名` 一栏填填入 **配置好的可用的 CDN 域名**(CDN 域名需要你先去开通 CDN 服务,如腾讯云、阿里云、七牛云等,然后按他们的文档配置),一般会把域名配置成 `cdn.你的域名` 这种形式,切记填写的时候**要带上协议**(如https:\/\/cdn.bbchin.com);

- 最后,去前台刷新页面,通过控制台观察静态资源是否通过自定义 CDN 加载(注意:请一定注意配置好 CDN 的缓存策略,不然后面主题文件更新后可能不会及时生效,必要时要手动清除)。

Expand Down
5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@
<div id="app">加载中…</div>
<script>
var lastVersion = sessionStorage.getItem('joe2.0-docs-version') || '1.0.10'
var isProd = !location.href.indexOf('localhost') && !location.href.indexOf('127.0.0.1')
window.$docsify = {
name: 'Joe2.0文档',
repo: 'https://github.com/qinhua/halo-theme-joe2.0',
// coverpage: true,
// homepage: 'https://cdn.jsdelivr.net/gh/qinhua/halo-theme-joe2.0@master/README.md',
homepage: 'https://cdn.jsdelivr.net/gh/qinhua/halo-theme-joe2.0@' + lastVersion + '/README.md',
homepage: isProd ? 'https://cdn.jsdelivr.net/gh/qinhua/halo-theme-joe2.0@' + lastVersion + '/README.md' :
'https://cdn.jsdelivr.net/gh/qinhua/halo-theme-joe2.0@master/README.md',
// relativePath: true,
subMaxLevel: 3,
auto2top: true,
Expand Down
20 changes: 1 addition & 19 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ theme:
- value: false
label:
background_light_mode:
name: lazyload_avatar
name: background_light_mode
label: 背景图(浅色模式)
type: attachment
default: ""
Expand Down Expand Up @@ -2737,69 +2737,51 @@ social:
name: email
label: 邮箱
type: text
default: ""
# default: "[email protected]"
placeholder: "邮箱地址"
github:
name: github
label: Github
type: text
default: ""
# default: "https://github.com/qinhua"
placeholder: "github主页地址"
gitee:
name: gitee
label: Gitee
type: text
default: ""
# default: "https://gitee.com/duider"
placeholder: "gitee主页地址"
zhihu:
name: zhihu
label: 知乎
type: text
default: ""
# default: "https://www.zhihu.com"
placeholder: "知乎主页地址"
telegram:
name: telegram
label: Telegram
type: text
default: ""
placeholder: "Telegram主页地址"
juejin:
name: juejin
label: 掘金
type: text
default: ""
# default: "https://juejin.cn/user/817692384432407"
placeholder: "掘金主页地址"
bilibili:
name: bilibili
label: B站
type: text
default: ""
# default: "https://space.bilibili.com/89927969"
placeholder: "B站主页地址"
qq:
name: qq
label: QQ
type: text
default: ""
# default: "352484005"
placeholder: "QQ号"
weibo:
name: weibo
label: 微博
type: text
default: ""
# default: "https://weibo.com/duider"
placeholder: "微博主页地址"
custome_social_channel:
name: custome_social_channel
label: 自定义社交渠道
type: textarea
default: ""
placeholder: "请按描述文字规定的格式输入"
description: "自定义社交渠道,支持自己定义渠道名称、图标和链接。格式要求:名称+图标+链接(务必用换行隔开并按顺序输入,否则展示不了)"
qq_group:
Expand Down
3 changes: 2 additions & 1 deletion source/lib/busuanzi/busuanzi.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function numberToHans (value) {
}
newValue[1] = text1
}
if (value < 1000) {
// if (value < 1000) {
if (value < 10000) {
newValue[0] = value + ''
newValue[1] = ''
}
Expand Down

0 comments on commit 82e671a

Please sign in to comment.