Adjust the comment config
This commit is contained in:
parent
2ee190bc31
commit
955e137bff
2 changed files with 19 additions and 9 deletions
|
@ -155,13 +155,23 @@
|
|||
<hr />
|
||||
{{ partial "navigators/next-prev-navigator.html" . }}
|
||||
<hr />
|
||||
|
||||
<!-- Add comment support -->
|
||||
{{ $commentEnabled:= false }}
|
||||
{{ if or site.Params.features.comment.enabled site.DisqusShortname }}
|
||||
{{ $commentEnabled = true }}
|
||||
{{ end }}
|
||||
{{ if $commentEnabled }}
|
||||
{{ with site.Params.features.comment }}
|
||||
<!-- Add Disqus forum -->
|
||||
{{ if site.DisqusShortname }}
|
||||
{{ if or .disqus.shortName site.DisqusShortname }}
|
||||
{{ partial "disqus.html" . }}
|
||||
<!-- Add valine -->
|
||||
{{ else if site.Params.valine.enable }}
|
||||
{{ else if .valine }}
|
||||
{{ partial "valine.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
avatar:'{{ .Site.Params.valine.avatar }}',
|
||||
placeholder: '{{ .Site.Params.valine.placeholder }}',
|
||||
visitor: {{ .Site.Params.valine.visitor }},
|
||||
lang: {{ .Site.Params.valine.lang }},
|
||||
recordIP: true,
|
||||
enableQQ: true
|
||||
lang: '{{ .Site.Params.valine.lang }}',
|
||||
recordIP: {{ .Site.Params.valine.recordIP }},
|
||||
enableQQ: {{ .Site.Params.valine.enableQQ }}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue