Improve the post page view logic.

This commit is contained in:
凡梦星尘
2022-07-05 22:01:48 +08:00
parent fb441cb39e
commit ca709ba909
7 changed files with 16 additions and 19 deletions

View File

@@ -2,10 +2,10 @@
{{- if .Site.Params.leancloudVisitors.enable }}
{{- $pageViewCls = "leancloud-visitors-count" }}
{{- end }}
{{- if and .Site.Params.waline.enable .Site.Params.waline.pageView }}
{{- if .Site.Params.waline.pageView }}
{{- $pageViewCls = "waline-pageview-count" }}
{{- end }}
{{- if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.postViews }}
{{- if .Site.Params.busuanzi.postViews }}
{{- $pageViewCls = "busuanzi_value_page_pv" }}
{{- end }}
<span class="post-meta-item" title="{{ T "PostViews" }}">