🎉 Feat: add Artalk comment support (#54)

This commit is contained in:
Cell
2022-01-30 21:29:26 +08:00
parent 01f4009881
commit 862d3130fe
16 changed files with 209 additions and 162 deletions
+11 -5
View File
@@ -707,13 +707,19 @@ enableEmoji = true
# Comment config
# 评论系统设置
[params.page.comment]
enable = true
# Artalk comment system config
# Artalk 评论系统设置
enable = false
# Artalk comment config (https://artalk.js.org/) since v0.2.12
# Artalk 评论系统设置 (https://artalk.js.org/) since v0.2.12
[params.page.comment.artalk]
enable = true
enable = false
server = "https://yourdomain/api/"
sitename = "默认站点"
site = "your site name"
placeholder = ""
noComment = ""
sendBtn = ""
editorTravel = true
flatMode = 'auto'
maxNesting = 3
# Disqus comment config (https://disqus.com/)
# Disqus 评论系统设置 (https://disqus.com/)
[params.page.comment.disqus]
+4 -2
View File
@@ -58,7 +58,8 @@ math:
* :(far fa-comments fa-fw): **Facebook comments** system supported by [Facebook](https://developers.facebook.com/docs/plugins/comments/)
* :(fas fa-comment fa-fw): **Telegram comments** system supported by [Comments](https://comments.app/)
* :(fas fa-comment-dots fa-fw): **Commento** comment system supported by [Commento](https://commento.io/)
* :(fas fa-comment-alt fa-fw): **Utterances** comment system supported by [Utterances](https://utteranc.es/)
* :(far fa-comment-alt fa-fw): **Utterances** comment system supported by [Utterances](https://utteranc.es/)
* :(far fa-comment-alt fa-fw): **Artalk** comment system supported by [Artalk](https://artalk.js.org/)
#### Extended Features
@@ -120,4 +121,5 @@ Thanks to the authors of following resources included in the theme:
* [Valine](https://valine.js.org/)
* [cookieconsent](https://github.com/osano/cookieconsent)
* [Watermark](https://github.com/Lruihao/watermark)
* [pangu.js](https://github.com/vinta/pangu.js)
* [pangu.js](https://github.com/vinta/pangu.js)
* [Artalk](https://artalk.js.org/)
+2
View File
@@ -59,6 +59,7 @@ math:
* :(fas fa-comment fa-fw): 支持 **[Telegram comments](https://comments.app/) 评论**系统
* :(fas fa-comment-dots fa-fw): 支持 **[Commento](https://commento.io/)** 评论系统
* :(far fa-comment-alt fa-fw): 支持 **[Utterances](https://utteranc.es/)** 评论系统
* :(far fa-comment-alt fa-fw): 支持 **[Artalk](https://artalk.js.org/)** 评论系统
#### 扩展功能
@@ -121,3 +122,4 @@ FixIt 主题中用到了以下项目,感谢它们的作者:
* [cookieconsent](https://github.com/osano/cookieconsent)
* [Watermark](https://github.com/Lruihao/watermark)
* [pangu.js](https://github.com/vinta/pangu.js)
* [Artalk](https://artalk.js.org/)
@@ -497,9 +497,21 @@ Please open the code block below to view the complete sample configuration :(far
Skype = false
Trello = false
Mix = false
# {{< version 0.2.0 changed >}} Comment config
# {{< version 0.2.13 changed >}} Comment config
[params.page.comment]
enable = true
enable = false
# {{< version 0.2.13 >}}
# {{< link "https://artalk.js.org/" Artalk >}} comment config (https://artalk.js.org/)
[params.page.comment.artalk]
enable = false
server = "https://yourdomain/api/"
site = "your site name"
placeholder = ""
noComment = ""
sendBtn = ""
editorTravel = true
flatMode = 'auto'
maxNesting = 3
# {{< link "https://disqus.com/" Disqus >}} comment config (https://disqus.com)
[params.page.comment.disqus]
# {{< version 0.1.1 >}}
@@ -508,9 +508,21 @@ hugo
Skype = false
Trello = false
Mix = false
# {{< version 0.2.0 changed >}} 评论系统设置
# {{< version 0.2.13 changed >}} 评论系统设置
[params.page.comment]
enable = true
enable = false
# {{< version 0.2.13 >}}
# {{< link "https://artalk.js.org/" Artalk >}} 评论系统设置 (https://artalk.js.org/)
[params.page.comment.artalk]
enable = false
server = "https://yourdomain/api/"
site = "你的网站名称"
placeholder = ""
noComment = ""
sendBtn = ""
editorTravel = true
flatMode = 'auto'
maxNesting = 3
# {{< link "https://disqus.com/" Disqus >}} 评论系统设置 (https://disqus.com)
[params.page.comment.disqus]
# {{< version 0.1.1 >}}