-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:imaegoo/twikoo
- Loading branch information
Showing
11 changed files
with
320 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,6 @@ onMounted(() => { | |
|
||
<!-- Twikoo --> | ||
<div id="twikoo"></div> | ||
<component :is="'script'" src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/twikoo.all.min.js" ref="twikooJs"></component> | ||
<component :is="'script'" src="https://cdn.jsdelivr.net/npm/[email protected].22/dist/twikoo.all.min.js" ref="twikooJs"></component> | ||
</div> | ||
</template> |
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 |
---|---|---|
|
@@ -67,10 +67,16 @@ twikoo: | |
|
||
请参考 [Redefine 官方文档 #comment](https://redefine-docs.ohevan.com/docs/configuration-guide/comment#twikoo) 进行配置 | ||
|
||
## 在 Hugo 中使用 | ||
|
||
### 在 [hugo-theme-stack](https://github.com/CaiJimmy/hugo-theme-stack) 主题使用 | ||
|
||
请参考 [Comments | Stack](https://stack.jimmycai.com/config/comments) 和 [hugo-theme-stack/config.yaml#L83](https://github.com/CaiJimmy/hugo-theme-stack/blob/master/config.yaml#L83) 进行配置 | ||
|
||
### 在 [FixIt](https://github.com/hugo-fixit/FixIt) 主题使用 | ||
|
||
请参考 [入门篇 - FixIt #主题配置](https://fixit.lruihao.cn/zh-cn/documentation/basics/#theme-configuration) 和 [hugo-fixit/FixIt/config.toml#L613-L624](https://github.com/hugo-fixit/FixIt/blob/8bb2a35dcc4c54fc3e0fb968df063d6be1daabf3/config.toml#L613-L624) 进行配置 | ||
|
||
## 通过 CDN 引入 | ||
|
||
::: tip 提示 | ||
|
@@ -79,7 +85,7 @@ twikoo: | |
|
||
``` html | ||
<div id="tcomment"></div> | ||
<script src="https://cdn.staticfile.org/twikoo/1.6.21/twikoo.all.min.js"></script> | ||
<script src="https://cdn.staticfile.org/twikoo/1.6.22/twikoo.all.min.js"></script> | ||
<script> | ||
twikoo.init({ | ||
envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app) | ||
|
@@ -97,10 +103,10 @@ twikoo.init({ | |
|
||
如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本: | ||
|
||
* `https://cdn.staticfile.org/twikoo/1.6.21/twikoo.all.min.js` | ||
* `https://lib.baomitu.com/twikoo/1.6.21/twikoo.all.min.js` | ||
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.21/twikoo.all.min.js` | ||
* `https://cdn.jsdelivr.net/npm/[email protected].21/dist/twikoo.all.min.js` | ||
* `https://cdn.staticfile.org/twikoo/1.6.22/twikoo.all.min.js` | ||
* `https://lib.baomitu.com/twikoo/1.6.22/twikoo.all.min.js` | ||
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.22/twikoo.all.min.js` | ||
* `https://cdn.jsdelivr.net/npm/[email protected].22/dist/twikoo.all.min.js` | ||
|
||
## 开启管理面板(腾讯云环境) | ||
|
||
|
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
Oops, something went wrong.