From 598e3e717dcde6d3d4e67f2eba1299a88c686198 Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Sun, 2 Oct 2016 22:53:58 +0200 Subject: [PATCH] comments.html: Shorten if condition (#44) Signed-off-by: Stephan Kulla --- layouts/partials/comments.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 41c6fa0b..edb5480c 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,4 +1,4 @@ -{{ if and (and (not (eq .Site.DisqusShortname "")) (not (isset .Site.Params "disable_comments")) (not (isset .Params "disable_comments"))) }} +{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }}
{{ template "_internal/disqus.html" . }}