mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-04 03:08:00 +09:00
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
- const {use,count} = theme.comment
|
|
|
|
#post-comment
|
|
.comment-head
|
|
.comment-headline
|
|
i.solitude.st-chat-fill
|
|
span=' ' + _p('comment.title')
|
|
if count && is_post()
|
|
span.count
|
|
= ' ('
|
|
each name in use
|
|
case name
|
|
when "Twikoo"
|
|
span.twikoo-count
|
|
i.solitude.st-loading-line
|
|
when "Waline"
|
|
span.waline-comment-count
|
|
i.solitude.st-loading-line
|
|
when "Valine"
|
|
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
|
i.solitude.st-loading-line
|
|
when "Artalk"
|
|
span.artalk-count
|
|
| )
|
|
|
|
if use.length > 1
|
|
.comment-switch
|
|
span.first=use[0]
|
|
span#switch-btn
|
|
span.second=use[1]
|
|
|
|
.comment-wrap
|
|
each name in use
|
|
case name
|
|
when 'Valine'
|
|
#vcomment.vcomment
|
|
when 'Twikoo'
|
|
#twikoo-wrap
|
|
when 'Waline'
|
|
#waline-wrap
|
|
when 'Artalk'
|
|
#artalk-wrap
|
|
when 'Giscus'
|
|
#giscus-wrap |