mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
feat: 添加Remark42评论支持
This commit is contained in:
1 parent
3e30f301a0
commit
060defa475
4 files changed
+49
-2
No files matched your search
+10
-1
@@ -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
|
||||
# --------------------------------------
|
||||
|
||||
|
||||
+3
-1
@@ -34,9 +34,11 @@ hr
|
||||
when 'Waline'
|
||||
#waline-wrap
|
||||
when 'Giscus'
|
||||
#giscus-wrap
|
||||
#giscus-wrap
|
||||
when 'Facebook Comments'
|
||||
.fb-comments(data-colorscheme = theme.display_mode === 'dark' ? 'dark' : 'light'
|
||||
data-numposts= theme.facebook_comments.pageSize || 10
|
||||
data-order-by= theme.facebook_comments.order_by || 'social'
|
||||
data-width="100%")
|
||||
when 'Remark42'
|
||||
#remark42
|
||||
+2
@@ -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
Reference in new issue
Block a user