diff options
author | Asur <asur@asurbernardo.com> | 2020-07-24 19:48:03 +0300 |
---|---|---|
committer | Asur <asur@asurbernardo.com> | 2020-07-24 19:48:03 +0300 |
commit | d8cc938e39e367cc86efaca3699cead97e0a9712 (patch) | |
tree | 9b4ef02737e4d0ef6ef2dad4c1ebe4ea64a1592d | |
parent | c44bc3687e6cb04df598e626878395283b97836b (diff) |
Add a configuration to disable comments for individual posts
-rw-r--r-- | layouts/partials/post/comments.html | 2 |
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" |