🐛 Fixed the comment setting in front matter.

This commit is contained in:
凡梦星尘
2022-10-30 21:04:08 +08:00
parent 7c9b834729
commit f84d590023
5 changed files with 16 additions and 10 deletions

View File

@@ -32,7 +32,7 @@
{{ if .Site.Params.waline.pageView }}
{{ partial "post/header_meta/views.html" . }}
{{ end }}
{{ if .Site.Params.waline.comment }}
{{ if and (.Scratch.Get "isComment") .Site.Params.waline.comment }}
{{ partial "post/header_meta/comments.html" . }}
{{ end }}
</div>
@@ -43,7 +43,7 @@
{{ partial "post/header_meta/words.html" . }}
{{ partial "post/header_meta/readtime.html" . }}
{{ partial "post/header_meta/views.html" . }}
{{ if .Site.Params.waline.comment }}
{{ if and (.Scratch.Get "isComment") .Site.Params.waline.comment }}
{{ partial "post/header_meta/comments.html" . }}
{{ end }}
</div>