Skip to content

Commit

Permalink
🐛 更新 Discuss 依赖 @Lete114
Browse files Browse the repository at this point in the history
  • Loading branch information
CCKNBC committed Jul 27, 2022
1 parent 77b9ead commit 7c5cfe5
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 42 deletions.
5 changes: 4 additions & 1 deletion _config.butterfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ pace:
snow:
enable: false

instatus:
enable: true

# PWA
# See https://github.com/JLHwung/hexo-offline
# ---------------
Expand Down Expand Up @@ -1102,4 +1105,4 @@ CDN:
# other
pace: https://gcore.jsdelivr.net/gh/CodeByZach/pace/pace.min.js
ccknbc: https://gcore.jsdelivr.net/gh/ccknbc-backup/cdn@latest/js/ccknbc.js
discuss: https://gcore.jsdelivr.net/npm/discuss/dist/Discuss.js
discuss: https://gcore.jsdelivr.net/npm/discuss/dist/discuss.js
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/essay/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ description: CC的部落格 即刻短文页面
</style>
<script src="https://cdn.staticfile.org/highlight.js/10.6.0/highlight.min.js"></script>
<script src="https://cdn.staticfile.org/marked/2.0.0/marked.min.js"></script>
<script src="https://gcore.jsdelivr.net/npm/discuss/dist/Discuss.js"></script>
<script src="https://gcore.jsdelivr.net/npm/discuss/dist/discuss.js"></script>
<script src="https://gcore.jsdelivr.net/npm/ispeak/ispeak.umd.js"></script>
<script>
var head = document.getElementsByTagName('head')[0]
Expand All @@ -47,7 +47,7 @@ description: CC的部落格 即刻短文页面
loading_img: 'https://gcore.jsdelivr.net/gh/ccknbc-backup/photos/blog/2021-03-08~15-13-15.gif',
speakPage: '/essay',
githubClientId: 'Iv1.f333c02f5f6676e8',
initCommentName: 'Discuss',
initCommentName: 'discuss',
initCommentOptions: {
serverURLs: 'https://discuss.ccknbc.vercel.app/'
}
Expand Down
16 changes: 9 additions & 7 deletions source/privacy-policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ top_img: false
translate_title: privacy-policy
subtitle: Privacy Policy
date: 2021-05-14 17:12:24
updated: 2022-06-21 21:28:19
updated: 2022-07-27 22:16:51
description: CC的部落格 隐私政策
---
本站非常重视用户的隐私和个人信息保护。您在使用网站时,可能会收集和使用您的相关信息。通过《隐私政策》向您说明在您访问 {% label blog.ccknbc.cc green %} 网站时,如何收集、使用、保存、共享和转让这些信息。
Expand All @@ -15,9 +15,10 @@ description: CC的部落格 隐私政策

在您访问时,仅会处于以下目的,使用您的个人信息:

- **51la统计工具** 会收集你的访问信息
- **灵雀应用监控平台** 会收集你的访问操作过程和资源加载情况
- **阿里cdn(iconfont)** 会收集你的访问信息
- **[51.LA](https://www.51.la/about/privacy)** 会收集你的访问信息
- **[灵雀应用监控平台](https://perf.51.la)**会收集你的访问操作过程和资源加载情况
- **[AddThis](https://www.addthis.com/privacy/privacy-policy)** 会收集你的访问信息
- **[Tidio](https://www.tidio.com/privacy-policy/) ** 会收集你的访问信息

在访问时,本人仅会处于以下目的,使用你的个人信息:

Expand All @@ -29,7 +30,7 @@ description: CC的部落格 隐私政策
- 用于网站搜索结果优化
- 浏览数据的展示

[51.LA](https://www.51.la/about/privacy)/[AddThis](https://www.addthis.com/privacy/privacy-policy)/[Tidio](https://www.tidio.com/privacy-policy/) 统计工具会收集您的访问信息,用于网站的优化与文章分类、恶意访问识别(被动,存储,系统定期清理)
[51.LA](https://www.51.la/about/privacy)/[灵雀应用监控平台](https://perf.51.la)/[AddThis](https://www.addthis.com/privacy/privacy-policy)/[Tidio](https://www.tidio.com/privacy-policy/) 统计工具会收集您的访问信息,用于网站的优化与文章分类、恶意访问识别(被动,存储,系统定期清理)

您应该知道在您访问的时候以下信息会被统计功能使用:

Expand Down Expand Up @@ -96,14 +97,15 @@ Cookies提供许多功能。例如,他们可以帮助我记住您喜欢深色

| 第三方服务商 | 用途 |
| :----------------------------------------------------------: | :----------------------------------------------: |
| [Instatus](https://instatus.com/policies/privacy) | 用于展示网站运行状态 |
| [Instatus](https://instatus.com/policies/privacy) | 用于展示网站运行状态(仅 404 和 Offline 页面) |
| ~~[Disqus&DisqusJS](https://help.disqus.com/en/articles/1717103-disqus-privacy-policy)~~ | ~~用于网站评论,存取您的验证信息及可访问状态~~ |
| [Tidio](https://www.tidio.com/privacy-policy/) | 用于与我联络,邮件订阅,访问统计 |
| [MailChimp](https://mailchimp.com/legal/privacy/) | 订阅页嵌入或与其他服务集成以完成邮件订阅 |
| [AddThis](https://www.addthis.com/privacy/privacy-policy) | 用于文章页面分享,访问统计,弹窗公告,邮件订阅 |
| ~~[百度统计](https://tongji.baidu.com/)~~ | ~~用于国内用户统计站内访问情况,进行针对性优化~~ |
| ~~[谷歌分析](https://policies.google.com/privacy?hl=zh-CN)~~ | ~~用于国外用户统计站内访问情况,行为特征~~ |
| [51.LA](https://www.51.la/about/privacy) | 用于统计站内访问情况,进行针对性优化 |
| [灵雀应用监控平台](https://perf.51.la) | 会收集你的访问操作过程和资源加载情况 |

如何管理 Cookies ?
--------------------------------------------
Expand All @@ -125,4 +127,4 @@ Cookies提供许多功能。例如,他们可以帮助我记住您喜欢深色

我可能对此 Cookies 政策所做的任何更改都将发布在此页面上。如果更改很重要,我会在博客首页明确指出该政策已更新。

{% btn '',最后修订时间:2022 年 62121:28,fa-solid fa-history,block right green smaller %}
{% btn '',最后修订时间:2022 年 72722:16,fa-solid fa-history,block right green smaller %}
10 changes: 5 additions & 5 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ workbox.routing.registerRoute(
const cdn = {
gh: {
// jsdelivr: 'https://cdn.jsdelivr.net/gh',
// fastly: 'https://fastly.jsdelivr.net/gh',
fastly: 'https://fastly.jsdelivr.net/gh',
gcore: 'https://gcore.jsdelivr.net/gh',
bilicdn: 'https://cdn.bilicdn.tk/gh',
onmicrosoft: 'https://jsd.onmicrosoft.cn/gh',
Expand All @@ -255,15 +255,15 @@ const cdn = {
test1: 'https://test1.jsdelivr.net/gh'
},
combine: {
jsdelivr: 'https://cdn.jsdelivr.net/combine',
// fastly: 'https://fastly.jsdelivr.net/combine',
// jsdelivr: 'https://cdn.jsdelivr.net/combine',
fastly: 'https://fastly.jsdelivr.net/combine',
gcore: 'https://gcore.jsdelivr.net/combine',
testingcf: 'https://testingcf.jsdelivr.net/combine',
test1: 'https://test1.jsdelivr.net/combine'
},
npm: {
jsdelivr: 'https://cdn.jsdelivr.net/npm',
// fastly: 'https://fastly.jsdelivr.net/npm',
// jsdelivr: 'https://cdn.jsdelivr.net/npm',
fastly: 'https://fastly.jsdelivr.net/npm',
gcore: 'https://gcore.jsdelivr.net/npm',
bilicdn: 'https://cdn.bilicdn.tk/npm',
onmicrosoft: 'https://jsd.onmicrosoft.cn/npm',
Expand Down
3 changes: 3 additions & 0 deletions themes/butterfly/layout/includes/additional-js.pug
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ div
if theme.addThis.enable
script(src=`https://s7.addthis.com/js/300/addthis_widget.js#pubid=${theme.addThis.pubid}` defer)

if theme.instatus.enable && is_current('/404' || '/offline')
script(defer src=`https://cc.instatus.com/widget/script.js`)

if !(is_post()) && theme.snow.enable
script(defer src=`https://api.vvhan.com/api/snow`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
script.
(()=>{
const init = () => {
Discuss.init(Object.assign({
discuss.init(Object.assign({
el: '#discuss-wrap',
serverURLs: '!{serverURLs}'
}, !{JSON.stringify(options)}))
Expand Down
2 changes: 1 addition & 1 deletion themes/butterfly/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ waline_css:
version: 2.6.1
discuss:
name: discuss
file: dist/Discuss.js
file: dist/discuss.js
version: 1.0.1
sharejs:
name: butterfly-extsrc
Expand Down
2 changes: 1 addition & 1 deletion themes/butterfly/scripts/events/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ hexo.extend.filter.register('before_generate', () => {
twikoo: `${pre}twikoo@1/dist/twikoo.all.min.js`,
waline_js: `${pre}@waline/client/dist/waline.js`,
waline_css: `${pre}@waline/client/dist/waline.css`,
discuss: `${pre}discuss/dist/Discuss.js`,
discuss: `${pre}discuss/dist/discuss.js`,
sharejs: `${pre}butterfly-extsrc@1/ShareJS/dist/js/social-share.min.js`,
sharejs_css: `${pre}butterfly-extsrc@1/ShareJS/dist/css/share.min.css`,
mathjax: `${pre}mathjax@3/es5/tex-mml-chtml.js`,
Expand Down

0 comments on commit 7c5cfe5

Please sign in to comment.