From 8469f1db1f1a755e7d3500a75458af200df485ec Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 10 Mar 2023 16:10:47 +0000 Subject: [PATCH] Don't show comments in preview mode --- website/common/templates/common/content_page.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/common/templates/common/content_page.html b/website/common/templates/common/content_page.html index 3b5b541..42ad7f9 100644 --- a/website/common/templates/common/content_page.html +++ b/website/common/templates/common/content_page.html @@ -12,7 +12,10 @@ {% block post_content %} {% include "common/shareon.html" %} - {% include "common/comments.html" %} + + {% if not request.is_preview %} + {% include "common/comments.html" %} + {% endif %} {% endblock %} {% block extra_css %}