From 9cc1f3b15f82aaf06bec498d37567629bd35b2bf Mon Sep 17 00:00:00 2001 From: p1c2u Date: Sat, 1 Apr 2023 11:00:01 +0100 Subject: [PATCH] sphinx-immaterial integration fix --- .../partials/integrations/analytics.html | 31 +++++++++++++++++++ .../integrations/analytics/google.html | 17 ++++++++++ 2 files changed, 48 insertions(+) create mode 100644 docs/_templates/partials/integrations/analytics.html create mode 100644 docs/_templates/partials/integrations/analytics/google.html diff --git a/docs/_templates/partials/integrations/analytics.html b/docs/_templates/partials/integrations/analytics.html new file mode 100644 index 00000000..63eba181 --- /dev/null +++ b/docs/_templates/partials/integrations/analytics.html @@ -0,0 +1,31 @@ + + + +{% if config.extra.analytics %} + {% set provider = config.extra.analytics.provider %} +{% endif %} + + +{% if provider %} + {% include "partials/integrations/analytics/" ~ provider ~ ".html" %} +{% endif %} diff --git a/docs/_templates/partials/integrations/analytics/google.html b/docs/_templates/partials/integrations/analytics/google.html new file mode 100644 index 00000000..0a7af0c2 --- /dev/null +++ b/docs/_templates/partials/integrations/analytics/google.html @@ -0,0 +1,17 @@ + +{% if config.extra.analytics %} + {% set property = config.extra.analytics.property | d("", true) %} +{% endif %} + + +{% if property.startswith("G-") %} + + + +{% endif %} \ No newline at end of file