🐛 Fixed the page views counter in home page.

This commit is contained in:
凡梦星尘
2022-11-06 18:23:55 +08:00
parent dd3766bce3
commit 8918bff71f
2 changed files with 7 additions and 6 deletions

View File

@@ -22,6 +22,7 @@
{{- end }}
{{- end }}
{{- if $.IsHome }} </h2> {{ else }} </h1> {{ end -}}
{{ $isComment := and (.Scratch.Get "isComment") .Site.Params.waline.comment }}
<div class="post-meta-container">
<div class="post-meta-items">
{{ partial "post/header_meta/created_date.html" . }}
@@ -29,10 +30,10 @@
{{ partial "post/header_meta/categories.html" . }}
{{ if and $.IsHome (not (isset .Params "extlink")) }}
<div class="post-meta-items">
{{ if and (eq .Site.Params.analytis.busuanzi.enable false) .Site.Params.waline.pageView }}
{{ if .Site.Params.waline.pageView }}
{{ partial "post/header_meta/views.html" . }}
{{ end }}
{{ if and (.Scratch.Get "isComment") .Site.Params.waline.comment }}
{{ if $isComment }}
{{ partial "post/header_meta/comments.html" . }}
{{ end }}
</div>
@@ -43,7 +44,7 @@
{{ partial "post/header_meta/words.html" . }}
{{ partial "post/header_meta/readtime.html" . }}
{{ partial "post/header_meta/views.html" . }}
{{ if and (.Scratch.Get "isComment") .Site.Params.waline.comment }}
{{ if $isComment }}
{{ partial "post/header_meta/comments.html" . }}
{{ end }}
</div>