QuickReference/themes/anzhiyu/layout/includes/third-party/comments/index.pug

35 lines
1.0 KiB
Plaintext

- let defaultComment = theme.comments.use[0]
hr
#post-comment
.comment-head
.comment-headline
i.anzhiyufont.anzhiyu-icon-comments
span= ' ' + _p('comment')
.comment-randomInfo
a(onclick="anzhiyu.addRandomCommentInfo()" href="javascript:void(0)" style=theme.visitorMail.enable ? "" : "display: none") 匿名评论
a(href=url_for('/privacy') style="margin-left: 4px") 隐私政策
if theme.comments.use.length > 1
.comment-switch
span.first-comment=defaultComment
span#switch-btn
span.second-comment=theme.comments.use[1]
if defaultComment == "Twikoo"
.comment-tips#comment-tips
span ✅ 你无需删除空行,直接评论以获取最佳展示效果
.comment-wrap
each name in theme.comments.use
div
case name
when 'Valine'
#vcomment.vcomment
when 'Twikoo'
#twikoo-wrap
when 'Waline'
#waline-wrap
when 'Artalk'
#artalk-wrap
.comment-barrage