From 168a5b2cc33908917fb55ab8c87f6c5ac5a6129d Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 6 May 2022 17:03:06 +0200 Subject: [PATCH] [IMP] odoo_theme: allow to add plausible script export PLAUSIBLE_SCRIPT=https://plausible.io/js/script.js export PLAUSIBLE_DOMAIN=yourdomain.com X-original-commit: 4c526eb02fee58352bb6c3dad9f2f9794500138c --- Makefile | 2 ++ extensions/odoo_theme/layout.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 60c88aeb4..ded92a324 100644 --- a/Makefile +++ b/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 diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index a73e17d9f..17b92a107 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -29,6 +29,9 @@ {%- endfor %} {%- endif %} {{ super() }} {# Load the scripts specified in the extensions/themes #} + {%- if plausible_script -%} + + {%- endif -%}