From 53eda167df8f0f983ee34fd33e90524dcecb08de Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Thu, 7 May 2026 17:53:34 +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(-) diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 2521026b..464e73f8 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,11 +1,11 @@ {% extends "!layout.html" %} {%- set current_version = "1.5.x circinus" %} {% 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 74ad1ff6..083482a8 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', ''), } # sphinx-sitemap: baseurl already includes /en/rolling/, so skip lang+version -- cgit v1.2.3