-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
22 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,13 @@ comments: true | |
--- | ||
|
||
!!!bug | ||
- 评论区需要刷新才能使用,正在修复中(大概率已修复) | ||
# (可以不)刷新即可加载评论区 | ||
- 评论区需要刷新才能使用,正在修复中 | ||
# 畅所欲言 | ||
|
||
<head> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous"> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script> | ||
|
||
|
||
<div id="tcomment"></div> | ||
|
@@ -20,11 +24,15 @@ comments: true | |
twikoo.init({ | ||
envId: 'https://superb-salamander-e730b6.netlify.app/.netlify/functions/twikoo', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app) | ||
el: '#tcomment', // 容器元素 | ||
// region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填 | ||
region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填 | ||
// path: location.pathname, // 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname,需传此参数 | ||
// lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/twikoojs/twikoo/blob/main/src/client/utils/i18n/index.js | ||
lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/twikoojs/twikoo/blob/main/src/client/utils/i18n/index.js | ||
onCommentLoaded: function () { | ||
console.log('评论加载完成'); | ||
} | ||
}) | ||
</script> | ||
</head> | ||
|
||
|
||
*** | ||
|
@@ -61,7 +69,10 @@ twikoo.init({ | |
</script> --> | ||
|
||
|
||
<script src="https://giscus.app/client.js" | ||
|
||
*** | ||
|
||
<!-- <script src="https://giscus.app/client.js" | ||
data-repo="Wcowin/hexo-site-comments" | ||
data-repo-id="R_kgDOIl9OJA" | ||
data-category="Announcements" | ||
|
@@ -75,26 +86,7 @@ twikoo.init({ | |
data-lang="zh-CN" | ||
crossorigin="anonymous" | ||
async> | ||
</script> | ||
</script> --> | ||
|
||
|
||
<ul> | ||
<li> | ||
当前页面浏览量: | ||
<span class="waline-pageview-count" /> | ||
</li> | ||
</ul> | ||
<script type="module"> | ||
import { pageviewCount } from 'https://unpkg.com/@waline/client/dist/pageview.mjs'; | ||
|
||
pageviewCount({ | ||
serverURL: 'https://mk-docs-comments.vercel.app/', | ||
path: window.location.pathname, | ||
|
||
// 可选的,用于自定选择器,默认为 `'.waline-pageview-count'` | ||
// selector: 'waline-pageview-count', | ||
|
||
// 可选的,是否在获取时增加访问量,默认为 `true` | ||
// update: true, | ||
}); | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters