2
0
mirror of https://github.com/offen/website.git synced 2024-12-23 13:30:20 +01:00

do not load offen script in local development

This commit is contained in:
Frederik Ring 2019-07-16 15:41:47 +02:00
parent 234e4014f2
commit ede83951d0
3 changed files with 7 additions and 1 deletions

View File

@ -38,3 +38,5 @@ TAGS_SAVE_AS = None
# keep this for access to page variable
DIRECT_TEMPLATES = []
OFFEN_ACCOUNT_ID = None

View File

@ -23,3 +23,5 @@ DELETE_OUTPUT_DIRECTORY = True
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""
OFFEN_ACCOUNT_ID = "5ec8345a-2a45-4eb9-92e5-8d9e5684db58"

View File

@ -20,7 +20,9 @@
<link rel="shortcut icon" type="image/x-icon" href="/theme/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="/theme/css/style.css">
<script async src="https://script-alpha.offen.dev/script.js" data-account-id="5ec8345a-2a45-4eb9-92e5-8d9e5684db58"></script>
{% if OFFEN_ACCOUNT_ID %}
<script async src="https://script-alpha.offen.dev/script.js" data-account-id="{{ OFFEN_ACCOUNT_ID }}"></script>
{% endif %}
</head>