Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asurbernardo/amperage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsur <asur@asurbernardo.com>2020-07-24 19:48:03 +0300
committerAsur <asur@asurbernardo.com>2020-07-24 19:48:03 +0300
commitd8cc938e39e367cc86efaca3699cead97e0a9712 (patch)
tree9b4ef02737e4d0ef6ef2dad4c1ebe4ea64a1592d
parentc44bc3687e6cb04df598e626878395283b97836b (diff)
Add a configuration to disable comments for individual posts
-rw-r--r--layouts/partials/post/comments.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post/comments.html b/layouts/partials/post/comments.html
index 62c2559..c036b6e 100644
--- a/layouts/partials/post/comments.html
+++ b/layouts/partials/post/comments.html
@@ -1,4 +1,4 @@
-{{ if isset .Site.Params "commentsembedurl" }}
+{{ if and (isset $.Site.Params "commentsembedurl") (ne $.Page.Params.commentsDisabled true) }}
<amp-iframe width=600 height=180
layout="responsive"
sandbox="allow-scripts allow-same-origin allow-modals allow-popups allow-forms"