🎨 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

@@ -22,21 +22,19 @@
{{ end }}
{{ end }}
{{ if $.IsHome }} </h2> {{ else }} </h1> {{ end }}
{{ $isComment := and (.Scratch.Get "isComment") .Site.Params.waline.comment }}
{{ $comments := .Site.Params.postMeta.comments.enable }}
<div class="post-meta-container">
<div class="post-meta-items">
{{ partial "post/header_meta/created_date.html" . }}
{{ partial "post/header_meta/update_date.html" . }}
{{ partial "post/header_meta/categories.html" . }}
{{ if and $.IsHome (not (isset .Params "extlink")) }}
<div class="post-meta-items">
{{ if .Site.Params.waline.pageView }}
{{ if and .Site.Params.postMeta.views.enable (ne .Site.Params.postMeta.views.plugin "busuanzi") }}
{{ partial "post/header_meta/views.html" . }}
{{ end }}
{{ if $isComment }}
{{ if $comments }}
{{ partial "post/header_meta/comments.html" . }}
{{ end }}
</div>
{{ end }}
</div>
{{ if not $.IsHome }}
@@ -44,7 +42,7 @@
{{ partial "post/header_meta/words.html" . }}
{{ partial "post/header_meta/readtime.html" . }}
{{ partial "post/header_meta/views.html" . }}
{{ if $isComment }}
{{ if $comments }}
{{ partial "post/header_meta/comments.html" . }}
{{ end }}
</div>