2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 12:10:25 +02:00

Merge pull request #24 from offen/conditional-offen

Do not load offen script in local development
This commit is contained in:
Frederik Ring 2019-07-23 14:45:37 +02:00 committed by GitHub
commit a2f40484a5
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>