summaryrefslogtreecommitdiff
path: root/docs/_templates/layout.html
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-07 17:53:34 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-07 18:23:25 +0300
commit53eda167df8f0f983ee34fd33e90524dcecb08de (patch)
treebd74666897b7ea6be6e285353455a460a6ca0d5c /docs/_templates/layout.html
parent9a92db9d232d9f15eedb3b11a5e3190d164c99d8 (diff)
downloadvyos-documentation-53eda167df8f0f983ee34fd33e90524dcecb08de.tar.gz
vyos-documentation-53eda167df8f0f983ee34fd33e90524dcecb08de.zip
feat(docs): move Cookiebot CBID to COOKIEBOT_ID env var
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)
Diffstat (limited to 'docs/_templates/layout.html')
-rw-r--r--docs/_templates/layout.html6
1 files changed, 3 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 #}
<script id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
- data-cbid="932cb8b9-5141-4dc9-9018-21fc31a0586f"
+ data-cbid="{{ cookiebot_id }}"
data-blockingmode="auto"
type="text/javascript"></script>
@@ -64,7 +64,7 @@
{% endblock %}
{% block body %}
- {% if gtm_id %}
+ {% if gtm_id and cookiebot_id %}
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_id }}"
height="0" width="0" style="display:none;visibility:hidden"
title="Google Tag Manager"></iframe></noscript>