Skip to content

Commit

Permalink
🎉 Feat: add Artalk comment support (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jan 30, 2022
1 parent 01f4009 commit 160020b
Show file tree
Hide file tree
Showing 16 changed files with 210 additions and 163 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
<!-- Releases see https://github.com/Lruihao/FixIt/releases -->

# v0.2.13

- :tada: Feat: add Artalk comment support ([#54](https://github.com/Lruihao/FixIt/issues/54))

## v0.2.12 [2022-1-27]

- :tada: Feat: add PWA support
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ the FixIt theme may be more suitable for you.
* **Telegram comments** system supported by [Telegram Comments](https://comments.app/)
* **Commento** comment system supported by [Commento](https://commento.io/)
* **Utterances** comment system supported by [Utterances](https://utteranc.es/)
* **Artalk** comment system supported by [Artalk](https://artalk.js.org/)

### Extended Features

Expand Down Expand Up @@ -223,6 +224,7 @@ Thanks to the authors of following resources included in the theme:
* [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/)

## Author

Expand Down
2 changes: 2 additions & 0 deletions README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ sh fixit_checker.sh
* 支持 **[Telegram comments](https://comments.app/) 评论**系统
* 支持 **[Commento](https://commento.io/)** 评论系统
* 支持 **[Utterances](https://utteranc.es/)** 评论系统
* 支持 **[Artalk](https://artalk.js.org/)** 评论系统

### 扩展功能

Expand Down Expand Up @@ -220,6 +221,7 @@ 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/)

## 作者

Expand Down
3 changes: 3 additions & 0 deletions assets/data/cdn/jsdelivr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ libFiles:
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
# artalk@2.1.4 https://github.com/ArtalkJS/Artalk
artalkCSS: artalk@2.1.4/dist/Artalk.min.css
artalkJS: artalk@2.1.4/dist/Artalk.min.js
# autocomplete.js@0.38.1 https://github.com/algolia/autocomplete.js
autocompleteJS: autocomplete.js@0.38.1/dist/autocomplete.min.js
# clipboard.js@2.0.8 https://github.com/zenorocha/clipboard.js
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/theme.min.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion assets/lib/VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
algoliasearch@4.11.0 https://github.com/algolia/algoliasearch-client-javascript
animate.css@4.1.1 https://github.com/daneden/animate.css
aplayer@1.10.1 https://github.com/MoePlayer/APlayer
artalk@2.1.4 https://github.com/ArtalkJS/Artalk
autocomplete.js@0.38.1 https://github.com/algolia/autocomplete.js
clipboard.js@2.0.8 https://github.com/zenorocha/clipboard.js
cookieconsent@3.1.1 https://github.com/osano/cookieconsent
Expand All @@ -24,4 +25,4 @@ simple-icons@5.21.1 https://github.com/simple-icons/simple-icons
twemoji@13.1.0 https://github.com/twitter/twemoji
typeit@7.0.4 https://github.com/alexmacarthur/typeit
valine@1.4.16 https://github.com/xCss/Valine
watermark@1.0.2 https://github.com/Lruihao/watermark.git
watermark@1.0.2 https://github.com/Lruihao/watermark
7 changes: 7 additions & 0 deletions assets/lib/artalk/Artalk.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/lib/artalk/Artalk.min.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
server = "https://yourdomain/api/"
sitename = "默认站点"
enable = false
server = ""
site = ""
placeholder = ""
noComment = ""
sendBtn = ""
editorTravel = true
flatMode = 'auto'
maxNesting = 3
# Disqus comment config (https://disqus.com/)
# Disqus 评论系统设置 (https://disqus.com/)
[params.page.comment.disqus]
Expand Down
6 changes: 4 additions & 2 deletions exampleSite/content/about/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 changes: 2 additions & 0 deletions exampleSite/content/about/index.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)** 评论系统

#### 扩展功能

Expand Down Expand Up @@ -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/)
16 changes: 14 additions & 2 deletions exampleSite/content/posts/theme-documentation-basics/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
site = ""
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 >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
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 >}}
Expand Down
Loading

0 comments on commit 160020b

Please sign in to comment.