File tree 2 files changed +19
-11
lines changed
2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
1
{#-
2
2
This file was automatically generated - do not edit
3
3
-#}
4
- {% set cookies = config.extra.consent.cookies %}
5
- {% if config.extra.analytics and not cookies %}
6
- {% set cookies = { "analytics": "Google Analytics" } %}
4
+ {% set cookies = config.extra.consent.cookies | d({}) %}
5
+ {% if config.extra.analytics %}
6
+ {% if "analytics" not in cookies %}
7
+ {% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
8
+ {% endif %}
7
9
{% endif %}
8
- {% if "github.com" in config.repo_url and "github" not in cookies %}
9
- {% set _ = cookies.update({ "github": "GitHub" }) %}
10
+ {% if "github.com" in config.repo_url %}
11
+ {% if "github" not in cookies %}
12
+ {% set _ = cookies.update({ "github": "GitHub" }) %}
13
+ {% endif %}
10
14
{% endif %}
11
15
{% set actions = config.extra.consent.actions %}
12
16
{% if not actions %}
Original file line number Diff line number Diff line change 20
20
IN THE SOFTWARE.
21
21
-->
22
22
23
- <!-- Determine cookies (default to analytics, if present) -->
24
- {% set cookies = config.extra.consent.cookies %}
25
- {% if config.extra.analytics and not cookies %}
26
- {% set cookies = { "analytics": "Google Analytics" } %}
23
+ <!-- Determine cookies -->
24
+ {% set cookies = config.extra.consent.cookies | d({}) %}
25
+ {% if config.extra.analytics %}
26
+ {% if "analytics" not in cookies %}
27
+ {% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
28
+ {% endif %}
27
29
{% endif %}
28
- {% if "github.com" in config.repo_url and "github" not in cookies %}
29
- {% set _ = cookies.update({ "github": "GitHub" }) %}
30
+ {% if "github.com" in config.repo_url %}
31
+ {% if "github" not in cookies %}
32
+ {% set _ = cookies.update({ "github": "GitHub" }) %}
33
+ {% endif %}
30
34
{% endif %}
31
35
32
36
<!-- Determine actions -->
You can’t perform that action at this time.
0 commit comments