add disableComments option #147

This commit is contained in:
Dmitry Kolosov 2022-04-12 20:11:58 +03:00
parent c4665390d2
commit ae6b41de47
3 changed files with 20 additions and 15 deletions

View file

@ -37,20 +37,7 @@
{{ partial "post-pagination.html" . }}
{{ end }}
{{ if .Site.DisqusShortname }}
{{ partial "disqus.html" . }}
{{ if not .Params.disableComments }}
{{ partial "comments.html" . }}
{{ end }}
{{ if .Site.Params.UtterancesRepo }}
{{ partial "utterances.html" . }}
{{ end }}
{{ if .Site.Params.isso.enabled }}
{{ partial "isso.html" . }}
{{ end }}
{{ if .Site.Params.graphcommentId }}
{{ partial "graphcomment.html" . }}
{{ end }}
{{ end }}

View file

@ -0,0 +1,15 @@
{{ if .Site.DisqusShortname }}
{{ partial "disqus.html" . }}
{{ end }}
{{ if .Site.Params.UtterancesRepo }}
{{ partial "utterances.html" . }}
{{ end }}
{{ if .Site.Params.isso.enabled }}
{{ partial "isso.html" . }}
{{ end }}
{{ if .Site.Params.graphcommentId }}
{{ partial "graphcomment.html" . }}
{{ end }}