Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ page:
upd: ""
authorComment: ""

# You can also close(false) or open(true) something for this content.
# P.S. comment can only be closed
comment: false

tags: []
categories: []

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- $comment := .Site.Params.Comment | default dict -}}
{{- $commentConfig := dict -}}

{{- if $comment.enable -}}
{{- if and $comment.enable (ne .Params.comment false) -}}
<div id="comments">
{{- /* Disqus Comment System */ -}}
{{- $disqus := $comment.disqus | default dict -}}
Expand Down