From 991fd7a6d67ee017c57beaaa21fc31c4bee7944d Mon Sep 17 00:00:00 2001
From: 简律纯
Date: Sat, 7 Oct 2023 06:48:07 +0800
Subject: feat(version): versions
---
material/templates/partials/consent.html | 66 ++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 material/templates/partials/consent.html
(limited to 'material/templates/partials/consent.html')
diff --git a/material/templates/partials/consent.html b/material/templates/partials/consent.html
new file mode 100644
index 00000000..4ac5cb77
--- /dev/null
+++ b/material/templates/partials/consent.html
@@ -0,0 +1,66 @@
+{#-
+ This file was automatically generated - do not edit
+-#}
+{% set cookies = config.extra.consent.cookies | d({}) %}
+{% if config.extra.analytics %}
+ {% if "analytics" not in cookies %}
+ {% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
+ {% endif %}
+{% endif %}
+{% if config.repo_url and "github.com" in config.repo_url %}
+ {% if "github" not in cookies %}
+ {% set _ = cookies.update({ "github": "GitHub" }) %}
+ {% endif %}
+{% endif %}
+{% set actions = config.extra.consent.actions %}
+{% if not actions %}
+ {% set actions = ["accept", "manage"] %}
+{% endif %}
+{% if "manage" not in actions %}
+ {% set checked = "checked" %}
+{% endif %}
+{{ config.extra.consent.title }}
+
{{ config.extra.consent.description }}
+ + + -- cgit v1.2.3-70-g09d2