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
c68e872f0e
commit
1f3f2f471b
5 files changed
+32
-1
No files matched your search
@@ -117,3 +117,7 @@
|
|||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment')
|
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(class="remark42__counter" data-url=urlNoIndex())
|
||||||
@@ -88,6 +88,10 @@ mixin postUI(posts)
|
|||||||
+countBlockInIndex
|
+countBlockInIndex
|
||||||
a(href=url_for(link) + '#post-comment')
|
a(href=url_for(link) + '#post-comment')
|
||||||
span.fb-comments-count(data-href=urlNoIndex(article.permalink))
|
span.fb-comments-count(data-href=urlNoIndex(article.permalink))
|
||||||
|
when 'Remark42'
|
||||||
|
+countBlockInIndex
|
||||||
|
a(href=url_for(link) + '#post-comment')
|
||||||
|
span(class="remark42__counter" data-url=urlNoIndex(article.permalink))
|
||||||
|
|
||||||
//- Display the article introduction on homepage
|
//- Display the article introduction on homepage
|
||||||
case theme.index_post_content.method
|
case theme.index_post_content.method
|
||||||
|
|||||||
@@ -10,3 +10,5 @@ case theme.comments.use[0]
|
|||||||
include ./waline.pug
|
include ./waline.pug
|
||||||
when 'Facebook Comments'
|
when 'Facebook Comments'
|
||||||
include ./fb.pug
|
include ./fb.pug
|
||||||
|
when 'Remark42'
|
||||||
|
include ./remark42.pug
|
||||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user