mirror of
https://github.com/offen/website.git
synced 2024-12-23 13:30:20 +01:00
Merge pull request #24 from offen/conditional-offen
Do not load offen script in local development
This commit is contained in:
commit
a2f40484a5
@ -38,3 +38,5 @@ TAGS_SAVE_AS = None
|
||||
|
||||
# keep this for access to page variable
|
||||
DIRECT_TEMPLATES = []
|
||||
|
||||
OFFEN_ACCOUNT_ID = None
|
||||
|
@ -23,3 +23,5 @@ DELETE_OUTPUT_DIRECTORY = True
|
||||
|
||||
#DISQUS_SITENAME = ""
|
||||
#GOOGLE_ANALYTICS = ""
|
||||
|
||||
OFFEN_ACCOUNT_ID = "5ec8345a-2a45-4eb9-92e5-8d9e5684db58"
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user