feat: 添加Remark42评论支持

This commit is contained in:
pai233 committed 2022-05-04 12:44:39 +08:00
1 parent 3e30f301a0
commit 060defa475
4 files changed
+48 -1

No files matched your search

+10 -1
View File
@@ -259,7 +259,7 @@ addtoany:
comments:
# Up to two comments system, the first will be shown as default
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42
use: # Valine,Disqus
text: true # Display the comment name next to the button
# lazyload: The comment system will be load when comment element enters the browser's viewport.
@@ -354,6 +354,15 @@ giscus:
dark: dark
option:
# Remark42
# https://remark42.com/docs/getting-started/installation/
remark42:
host: # required
siteId: remark # Your Site ID
language: en # https://remark42.com/docs/configuration/frontend/#locales
showEmailSubscription: true
simpleView: false
# Chat Services
# --------------------------------------
+2
View File
@@ -40,3 +40,5 @@ hr
data-numposts= theme.facebook_comments.pageSize || 10
data-order-by= theme.facebook_comments.order_by || 'social'
data-width="100%")
when 'Remark42'
#remark42
+2
View File
@@ -20,3 +20,5 @@ each name in theme.comments.use
!=partial('includes/third-party/comments/giscus', {}, {cache: true})
when 'Facebook Comments'
!=partial('includes/third-party/comments/facebook_comments', {}, {cache: true})
when 'Remark42'
!=partial('includes/third-party/comments/remark42', {}, {cache: true})
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff. Show more