add param commentOnAllPosts

This commit is contained in:
Mivinci 2021-11-29 01:04:53 +08:00
parent cbfde610e7
commit 6ff9489f84
3 changed files with 18 additions and 13 deletions

View file

@ -36,16 +36,17 @@
{{ partial "mermaid.html" . }}
{{ end }}
{{ if and .Params.comment (eq .Site.Params.comment "disqus")}}
{{ partial "disqus.html" . }}
{{ end }}
{{ if and .Site.Params.commentOnAllPosts (ne .Params.comment false) }}
{{ if eq .Site.Params.comment "disqus"}}
{{ partial "disqus.html" . }}
{{ end }}
{{ if and .Params.comment (eq .Site.Params.comment "ovo")}}
{{ partial "ovo.html" . }}
{{ end }}
{{ if eq .Site.Params.comment "ovo"}}
{{ partial "ovo.html" . }}
{{ end }}
{{ if and .Params.comment (eq .Site.Params.comment "utterances")}}
{{ partial "utterances.html" . }}
{{ if eq .Site.Params.comment "utterances"}}
{{ partial "utterances.html" . }}
{{ end }}
{{ end }}
{{ end }}