We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6cce07 commit 83e7e64Copy full SHA for 83e7e64
README.md
@@ -193,6 +193,7 @@ Comments is disabled by default. Enable comments in your `.Site.Params`.
193
[params]
194
[params.comments]
195
enabled = true
196
+ insert_hr_line = false # inserts an <hr> element before comment block
197
engine = "disqus" # default if unset
198
# other options: disqus, utterances, cactus_comments, remark42
199
```
layouts/partials/comments.html
@@ -1,5 +1,7 @@
1
{{ $enable_comments := .Scratch.Get "enable_comments" }}
2
{{ if $enable_comments -}}
3
+{{- if .Site.Params.Comments.insert_hr_line -}}<hr/>
4
+{{ end -}}
5
<div class="blog-post-comments">
6
{{ if (or (not (isset .Site.Params.Comments "engine")) (eq .Site.Params.Comments.Engine "disqus")) }}
7
{{ partial "comments/disqus.html" . }}
0 commit comments