🎨 Improved page & comment counter, Close #74.

This commit is contained in:
elkan1788
2023-04-05 12:16:05 +08:00
parent c7e4f52499
commit fbac63d70e
9 changed files with 54 additions and 44 deletions

View File

@@ -8,7 +8,7 @@
}}
{{/* Append waline pageview & comment plugin */}}
{{ if and .Site.Params.waline ( or .Site.Params.waline.pageView .Site.Params.waline.comment) }}
{{ if or (eq .Site.Params.postMeta.views.plugin "waline") (eq .Site.Params.postMeta.comments.plugin "waline") }}
{{ $counter := dict
"js" .Site.Data.resources.plugins.waline.js
}}