mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
⬆️ Chore(libs): update Artalk from 2.2.12 to 2.3.4 (#150)
This commit is contained in:
@@ -62,7 +62,11 @@
|
||||
{{- $comment := .Scratch.Get "comment" | default dict -}}
|
||||
{{- /* Visitor Count */ -}}
|
||||
{{- if $comment.enable -}}
|
||||
{{- if ($comment.valine.enable | and $comment.valine.visitor) | or ($comment.waline.enable | and $comment.waline.visitor) -}}
|
||||
{{- if $comment.artalk.enable -}}
|
||||
<span class="comment-visitors" data-flag-title="{{ .Title }}">
|
||||
<i class="fa-regular fa-eye fa-fw"></i> <span id="{{ .RelPermalink }}" class="artalk-visitor-count">-</span> {{ T "views" }}
|
||||
</span>
|
||||
{{- else if ($comment.valine.enable | and $comment.valine.visitor) | or ($comment.waline.enable | and $comment.waline.visitor) -}}
|
||||
{{- /* Warning: waline v2 will not be compatible with valine */ -}}
|
||||
<span id="{{ .RelPermalink }}" class="leancloud_visitors comment-visitors" data-flag-title="{{ .Title }}">
|
||||
<i class="fa-regular fa-eye fa-fw"></i> <span class="leancloud-visitors-count">-</span> {{ T "views" }}
|
||||
@@ -87,7 +91,11 @@
|
||||
{{- end -}}
|
||||
{{- /* Comment Count */ -}}
|
||||
{{- if $comment.enable -}}
|
||||
{{- if $comment.valine.enable | and $comment.valine.commentCount -}}
|
||||
{{- if $comment.artalk.enable -}}
|
||||
<span class="comment-count" data-flag-title="{{ .Title }}">
|
||||
<i class="fa-regular fa-comments fa-fw"></i> <span data-xid="{{ .RelPermalink }}" class="artalk-comment-count">-</span> {{ T "comments" }}
|
||||
</span>
|
||||
{{- else if $comment.valine.enable | and $comment.valine.commentCount -}}
|
||||
<span class="comment-count" data-flag-title="{{ .Title }}">
|
||||
<i class="fa-regular fa-comments fa-fw"></i> <span data-xid="{{ .RelPermalink }}" class="valine-comment-count">-</span> {{ T "comments" }}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user