From c3a0426c7b4f2e874ce4d568c908e1f619dfaa4e Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Thu, 7 May 2026 17:53:41 +0300 Subject: feat(docs): move Cookiebot CBID to COOKIEBOT_ID env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Read COOKIEBOT_ID from the environment via conf.py html_context, replacing the hardcoded data-cbid value in layout.html. Guards tightened to {% if gtm_id and cookiebot_id %} so neither GTM nor Cookiebot loads unless both IDs are present. 🤖 Generated by [robots](https://vyos.io) --- docs/_templates/layout.html | 6 +++--- docs/conf.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index e4781d89..6c100ca9 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,11 +1,11 @@ {% extends "!layout.html" %} {%- set current_version = "1.4.x sagitta" %} {% block extrahead %} - {% if gtm_id %} + {% if gtm_id and cookiebot_id %} {# Cookiebot CMP — must load first so its auto-blocker can scan/block other tags #} @@ -64,7 +64,7 @@ {% endblock %} {% block body %} - {% if gtm_id %} + {% if gtm_id and cookiebot_id %} diff --git a/docs/conf.py b/docs/conf.py index cbee4a36..7f4bf4eb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -148,6 +148,7 @@ html_context = { 'github_version': _github_version, 'conf_py_path': '/docs/', 'gtm_id': os.environ.get('GTM_ID', ''), + 'cookiebot_id': os.environ.get('COOKIEBOT_ID', ''), } # Custom sidebar templates, must be a dictionary that maps document names -- cgit v1.2.3