File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ Comments is disabled by default. Enable comments in your `.Site.Params`.
193
193
[params ]
194
194
[params .comments ]
195
195
enabled = true
196
+ insert_hr_line = false # inserts an <hr> element before comment block
196
197
engine = " disqus" # default if unset
197
198
# other options: disqus, utterances, cactus_comments, remark42
198
199
```
Original file line number Diff line number Diff line change 1
1
{{ $enable_comments := .Scratch.Get "enable_comments" }}
2
2
{{ if $enable_comments -}}
3
+ {{- if .Site.Params.Comments.insert_hr_line -}}< hr />
4
+ {{ end -}}
3
5
< div class ="blog-post-comments ">
4
6
{{ if (or (not (isset .Site.Params.Comments "engine")) (eq .Site.Params.Comments.Engine "disqus")) }}
5
7
{{ partial "comments/disqus.html" . }}
You can’t perform that action at this time.
0 commit comments