From f2981d2d0f606f34ab4e19c3aaa491cbaf024e77 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 6 Jan 2021 16:29:55 +0100 Subject: [PATCH] Add image fallback when user has disabled javascript --- articles/templates/articles/snippets/analytics.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/articles/templates/articles/snippets/analytics.html b/articles/templates/articles/snippets/analytics.html index 176bfa9..bc7cc12 100644 --- a/articles/templates/articles/snippets/analytics.html +++ b/articles/templates/articles/snippets/analytics.html @@ -7,8 +7,8 @@ {% endif %} - {% compress js inline %} - {% if goatcounter_domain is not None %} + {% if goatcounter_domain is not None %} + {% compress js inline %} - {% endif %} - {% endcompress %} + {% endcompress %} + + {% endif %} {% endif %}