Skip to content

Commit

Permalink
feat: add the comments parameter (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Mar 30, 2024
1 parent 673929e commit d474d83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ path = "github.com/hugomods/icons/vendors/bootstrap"

[params.hb.content_panel]
bottom = '20px'
comments = true

# [params.hb.content_panel.repo]
# service = "github"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/hb/modules/content-panel/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name" "chat-dots"
}}
{{- $icon := partialCached "icons/icon" $iconCtx $iconCtx }}
{{- if default true .Params.comments }}
{{- if and (default true site.Params.hb.content_panel.comments) (default true .Params.comments) }}
<div class="hb-content-panel-item">
<a
href="#content-comments"
Expand Down

0 comments on commit d474d83

Please sign in to comment.