🎨 Improved page & comment counter, Close #74.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user