Skip to content

Commit

Permalink
Merge branch 'main' of github.com:imaegoo/twikoo
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed Oct 25, 2023
2 parents 56dfe5a + c19eef3 commit 12f841f
Show file tree
Hide file tree
Showing 11 changed files with 320 additions and 164 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/Twikoo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion docs/backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ exports.main = require('twikoo-func').main
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
``` json
{ "dependencies": { "twikoo-func": "1.6.21" } }
{ "dependencies": { "twikoo-func": "1.6.22" } }
```

## 腾讯云命令行部署
Expand Down
16 changes: 11 additions & 5 deletions docs/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 提示
Expand All @@ -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)
Expand All @@ -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`

## 开启管理面板(腾讯云环境)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo",
"version": "1.6.21",
"version": "1.6.22",
"description": "A simple comment system.",
"keywords": [
"twikoojs",
Expand Down
Loading

0 comments on commit 12f841f

Please sign in to comment.