Skip to content

Commit d474d83

Browse files
authored
feat: add the comments parameter (#64)
1 parent 673929e commit d474d83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hugo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ path = "github.com/hugomods/icons/vendors/bootstrap"
99

1010
[params.hb.content_panel]
1111
bottom = '20px'
12+
comments = true
1213

1314
# [params.hb.content_panel.repo]
1415
# service = "github"

layouts/partials/hb/modules/content-panel/comments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name" "chat-dots"
44
}}
55
{{- $icon := partialCached "icons/icon" $iconCtx $iconCtx }}
6-
{{- if default true .Params.comments }}
6+
{{- if and (default true site.Params.hb.content_panel.comments) (default true .Params.comments) }}
77
<div class="hb-content-panel-item">
88
<a
99
href="#content-comments"

0 commit comments

Comments
 (0)