Merge pull request #894 from pai233/dev

Feat: 添加Remark42评论系统支持
This commit is contained in:
Jerry Wong authored and GitHub committed 2022-05-22 00:01:59 +08:00 Unverified
commit 6d387eadcc
12 files changed
+194 -6

No files matched your search

+5 -1
View File
@@ -123,4 +123,8 @@
when 'Facebook Comments'
+countBlock
a(href=url_for(page.path) + '#post-comment')
span.fb-comments-count(data-href=urlNoIndex())
span.fb-comments-count(data-href=urlNoIndex())
when 'Remark42'
+countBlock
a(href=url_for(page.path) + '#post-comment')
span.remark42__counter(data-url=urlNoIndex())
+4
View File
@@ -91,6 +91,10 @@ mixin postUI(posts)
+countBlockInIndex
a(href=url_for(link) + '#post-comment')
span.fb-comments-count(data-href=urlNoIndex(article.permalink))
when 'Remark42'
+countBlockInIndex
a(href=url_for(link) + '#post-comment')
span.remark42__counter(data-url=urlNoIndex(article.permalink))
//- Display the article introduction on homepage
case theme.index_post_content.method
+3 -1
View File
@@ -9,4 +9,6 @@ case theme.comments.use[0]
when 'Waline'
include ./waline.pug
when 'Facebook Comments'
include ./fb.pug
include ./fb.pug
when 'Remark42'
include ./remark42.pug
Loaded 3 of 12 files, more files were not shown because too many files have changed in this diff. Show more