diff --git a/archetypes/posts.md b/archetypes/posts.md index 162f37a..9cacca3 100644 --- a/archetypes/posts.md +++ b/archetypes/posts.md @@ -9,4 +9,5 @@ keywords = ["", ""] description = "" showFullContent = false readingTime = false +hideComments = false +++ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3d375ad..22146f4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -49,6 +49,8 @@ {{ partial "posts_pagination.html" . }} {{ end }} + {{ if not (.Params.hideComments | default false) }} {{ partial "comments.html" . }} + {{ end }} {{ end }}