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:
+2
-1
@@ -18,7 +18,8 @@ All notable changes to this project will be documented in this file.
|
||||
- :bug: Fix: close comment system logic error when the article was expired
|
||||
- :art: Style: add scroll bar for auto toc ([#136](https://github.com/Lruihao/FixIt/issues/136))
|
||||
- :wrench: Feat(cdn): add unpkg cdn support
|
||||
- :arrow_up: Chore: update some third-party libraries
|
||||
- :arrow_up: Chore(libs): update some third-party libraries
|
||||
- Update Artalk from 2.2.12 to 2.3.4 ([#150](https://github.com/Lruihao/FixIt/issues/150))
|
||||
- **Full Changelog:** @Lruihao [`v0.2.14...v0.2.15`](https://github.com/Lruihao/FixIt/compare/v0.2.14...v0.2.15)
|
||||
|
||||
## v0.2.14 [2022.5.15]
|
||||
|
||||
@@ -13,9 +13,9 @@ libFiles:
|
||||
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
||||
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
|
||||
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
|
||||
# artalk@2.1.4 https://github.com/ArtalkJS/Artalk
|
||||
artalkCSS: artalk@2.2.12/dist/Artalk.min.css
|
||||
artalkJS: artalk@2.2.12/dist/Artalk.min.js
|
||||
# artalk@2.3.4 https://github.com/ArtalkJS/Artalk
|
||||
artalkCSS: artalk@2.3.4/dist/Artalk.min.css
|
||||
artalkJS: artalk@2.3.4/dist/Artalk.min.js
|
||||
# autocomplete.js@0.38.1 https://github.com/algolia/autocomplete.js
|
||||
autocompleteJS: autocomplete.js@0.38.1/dist/autocomplete.min.js
|
||||
# cell-watermark@1.0.3 https://github.com/Lruihao/watermark
|
||||
|
||||
@@ -13,9 +13,9 @@ libFiles:
|
||||
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
||||
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
|
||||
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
|
||||
# artalk@2.1.4 https://github.com/ArtalkJS/Artalk
|
||||
artalkCSS: artalk@2.2.12/dist/Artalk.min.css
|
||||
artalkJS: artalk@2.2.12/dist/Artalk.min.js
|
||||
# artalk@2.3.4 https://github.com/ArtalkJS/Artalk
|
||||
artalkCSS: artalk@2.3.4/dist/Artalk.css
|
||||
artalkJS: artalk@2.3.4/dist/Artalk.js
|
||||
# autocomplete.js@0.38.1 https://github.com/algolia/autocomplete.js
|
||||
autocompleteJS: autocomplete.js@0.38.1/dist/autocomplete.min.js
|
||||
# cell-watermark@1.0.3 https://github.com/Lruihao/watermark
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
algoliasearch@4.13.0 https://github.com/algolia/algoliasearch-client-javascript
|
||||
animate.css@4.1.1 https://github.com/daneden/animate.css
|
||||
aplayer@1.10.1 https://github.com/MoePlayer/APlayer
|
||||
artalk@2.2.12 https://github.com/ArtalkJS/Artalk
|
||||
artalk@2.3.4 https://github.com/ArtalkJS/Artalk
|
||||
autocomplete.js@0.38.1 https://github.com/algolia/autocomplete.js
|
||||
cell-watermark@1.0.3 https://github.com/Lruihao/watermark
|
||||
cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -838,6 +838,7 @@ enableEmoji = true
|
||||
# It take effect when `params.page.lightgallery` is enabled
|
||||
# 当 `params.page.lightgallery` 启用时生效
|
||||
lightgallery = false
|
||||
locale = "" # since v0.2.15
|
||||
# Disqus comment config (https://disqus.com/)
|
||||
# Disqus 评论系统设置 (https://disqus.com/)
|
||||
[params.page.comment.disqus]
|
||||
|
||||
@@ -13,7 +13,14 @@
|
||||
{{- dict "Source" $source "Minify" true "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}}
|
||||
{{- $source := $cdn.artalkJS | default "lib/artalk/Artalk.min.js" -}}
|
||||
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
||||
{{- $commentConfig = dict "el" "#artalk" "pageKey" .Permalink "pageTitle" .Title | dict "artalk" | merge $commentConfig -}}
|
||||
{{- $commentConfig = dict "el" "#artalk" "pageKey" .Permalink "pageTitle" .Title "pvEl" "artalk-visitor-count" "countEl" "artalk-comment-count" | dict "artalk" | merge $commentConfig -}}
|
||||
{{- if (eq $artalk.locale "") | and (eq $.Site.LanguageCode "en") -}}
|
||||
{{- $artalk = dict "locale" "en-US" | merge $artalk -}}
|
||||
{{- end -}}
|
||||
{{- $commentConfig = dict "locale" ($artalk.locale | default $.Site.LanguageCode | default "auto") | dict "artalk" | merge $commentConfig -}}
|
||||
{{- with .Site.Params.gravatar -}}
|
||||
{{- $commentConfig = dict "mirror" .Host "default" .Style | dict "gravatar" | dict "artalk" | merge $commentConfig -}}
|
||||
{{- end -}}
|
||||
{{- with $artalk.server -}}
|
||||
{{- $commentConfig = dict "server" . | dict "artalk" | merge $commentConfig -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -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