[IMP] odoo_theme: allow to add plausible script
export plausible_script=https://plausible.io/js/script.js export plausible_domainscript=yourdomain.com
This commit is contained in:
parent
fdab26d5c7
commit
ee84b7d7c6
2
Makefile
2
Makefile
@ -19,6 +19,8 @@ SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSIO
|
||||
-D versions=$(VERSIONS) -D languages=$(LANGUAGES) -D language=$(CURRENT_LANG) \
|
||||
-D is_remote_build=$(IS_REMOTE_BUILD) \
|
||||
-A google_analytics_key=$(GOOGLE_ANALYTICS_KEY) \
|
||||
-A plausible_script=$(plausible_script) \
|
||||
-A plausible_domain=$(plausible_domain) \
|
||||
-j $(WORKERS)
|
||||
SOURCE_DIR = content
|
||||
|
||||
|
@ -29,6 +29,9 @@
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
{{ super() }} {# Load the scripts specified in the extensions/themes #}
|
||||
{%- if plausible_script -%}
|
||||
<script defer="defer" src="{{ plausible_script }}" data-domain="{{ plausible_domain }}"></script>
|
||||
{%- endif -%}
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
|
||||
crossorigin="anonymous"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user