Skip to content

Commit ff07d46

Browse files
Karsten NgKarsten Ng
andauthored
Add New Comment options (daattali#960)
* Init dev branch * Fix dev branch * Forgot to add commentbox.html * Testing discussbot integration * forgot comments.html * remove my credentials * Update _config.yml Change comments to offer unambiguous descriptions of variables. * remove discussbot * Update CHANGELOG.md Co-authored-by: Karsten Ng <[email protected]>
1 parent a29203e commit ff07d46

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Fixed very long strings to wrap around the next line rather than go off-screen (#787)
2020
- Added `footer-hover-col` config setting to customize the hover colour of links in the footer (#848)
2121
- Added social network link for Discord (#907)
22+
- Added CommentBox as comment option (#960)
2223

2324
## v5.0.0 (2020-09-15)
2425

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ footer-hover-col: "#0085A1"
161161
# To use Facebook Comments, create a Facebook app and fill in the Facebook App ID
162162
#fb_comment_id: ""
163163

164+
# To use CommentBox, sign up for a Project ID on https://commentbox.io
165+
#commentbox: "" # Project ID, e.g. "5694267682979840-proj"
166+
164167
# To use Utterances comments: (0) uncomment the following section, (1) fill in
165168
# "repository" (make sure the repository is public), (2) Enable Issues in your repository,
166169
# (3) Install the Utterances app in your repository https://github.com/apps/utterances

_includes/commentbox.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% if site.commentbox %}
2+
3+
<div class="commentbox"></div>
4+
<script src="https://unpkg.com/commentbox.io/dist/commentBox.min.js"></script>
5+
<script>commentBox('{{ site.commentbox }}')</script>
6+
7+
{% endif %}

_includes/comments.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
{% include staticman-comments.html %}
55
{% include utterances-comment.html %}
66
{% include giscus-comment.html %}
7+
{% include commentbox.html %}
78
{% endif %}

0 commit comments

Comments
 (0)