From ede83951d0dcf7526ee4316dee78eaadf7818177 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Tue, 16 Jul 2019 15:41:47 +0200 Subject: [PATCH] do not load offen script in local development --- pelicanconf.py | 2 ++ publishconf.py | 2 ++ theme/templates/base.html | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pelicanconf.py b/pelicanconf.py index 62fe466..cc09651 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -38,3 +38,5 @@ TAGS_SAVE_AS = None # keep this for access to page variable DIRECT_TEMPLATES = [] + +OFFEN_ACCOUNT_ID = None diff --git a/publishconf.py b/publishconf.py index e91bdfa..cf5b588 100644 --- a/publishconf.py +++ b/publishconf.py @@ -23,3 +23,5 @@ DELETE_OUTPUT_DIRECTORY = True #DISQUS_SITENAME = "" #GOOGLE_ANALYTICS = "" + +OFFEN_ACCOUNT_ID = "5ec8345a-2a45-4eb9-92e5-8d9e5684db58" diff --git a/theme/templates/base.html b/theme/templates/base.html index 048ba94..44dc6f7 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -20,7 +20,9 @@ - +{% if OFFEN_ACCOUNT_ID %} + +{% endif %}