Skip to content

Commit 471c061

Browse files
authored
Merge pull request #525 from SpineEventEngine/update-cookie-notice
Use the Cookie Script instead of the custom cookie notice
2 parents 3368376 + a8765c8 commit 471c061

File tree

9 files changed

+45
-240
lines changed

9 files changed

+45
-240
lines changed

site/assets/js/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@
2626

2727
import './modules/navbar/navbar';
2828
import './modules/go-top-button';
29-
import './modules/cookie-notice';

site/assets/js/modules/cookie-notice.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

site/assets/scss/main.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
@import "modules/checkbox";
4848
@import "modules/redirect-screen";
4949
@import "modules/loader";
50-
@import "modules/cookie-notice";
5150

5251
@import "pages/landing";
5352

site/assets/scss/modules/_cookie-notice.scss

Lines changed: 0 additions & 129 deletions
This file was deleted.

site/config/_default/hugo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ disableKinds = ['taxonomy', 'term']
2727
[params.gtm]
2828
id = 'GTM-T6NZS3S'
2929

30+
[params.cookieScript]
31+
id = '38b1283993fe8d87c0678be39b07ada2'
32+
3033
[security]
3134
[security.exec]
3235
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|HOME)$']

site/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/SpineEventEngine/SpineEventEngine.github.io
33
go 1.22.0
44

55
require (
6-
github.com/SpineEventEngine/documentation/docs v0.0.0-20251219134029-fa2a7bc2f266 // indirect
6+
github.com/SpineEventEngine/documentation/docs v0.0.0-20251222151322-354f5188bf68 // indirect
77
github.com/TeamDev-Ltd/site-commons v0.0.0-20251202150534-a795438915ff // indirect
88
)

site/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github.com/SpineEventEngine/documentation/docs v0.0.0-20251219134029-fa2a7bc2f266 h1:UFv+IDkXRivFdj+fshCWlSZcnBuUZarYiKdgCJY3B64=
2-
github.com/SpineEventEngine/documentation/docs v0.0.0-20251219134029-fa2a7bc2f266/go.mod h1:0lSB4kPZY9Qk429mepYiraNIEucYDIwiNVhJ3Wn3gKo=
1+
github.com/SpineEventEngine/documentation/docs v0.0.0-20251222151322-354f5188bf68 h1:jv/OOMpj/9iPvw/rY1UTotFffK377bSqfqLNbMo7dDM=
2+
github.com/SpineEventEngine/documentation/docs v0.0.0-20251222151322-354f5188bf68/go.mod h1:0lSB4kPZY9Qk429mepYiraNIEucYDIwiNVhJ3Wn3gKo=
33
github.com/TeamDev-Ltd/site-commons v0.0.0-20251202150534-a795438915ff h1:8kjfGJhf6LeS+IlK9NRktxtcv6O/WDneBuQD3QLPGIs=
44
github.com/TeamDev-Ltd/site-commons v0.0.0-20251202150534-a795438915ff/go.mod h1:atDeksDWBzsIidpW6Ivz2yYHwp2JPa1i1KXIxkctQ3c=

site/layouts/_partials/scripts/head-scripts.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727
{{ partial "scripts/head/gtm.html" . }}
2828
{{ partial "scripts/head/jquery.html" . }}
2929
{{ partial "scripts/head/docsearch.html" . }}
30+
{{ partial "scripts/head/cookie-notice.html" . }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!--
2+
~ Copyright 2025, TeamDev. All rights reserved.
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Redistribution and use in source and/or binary forms, with or without
11+
~ modification, must retain the above copyright notice and the following
12+
~ disclaimer.
13+
~
14+
~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15+
~ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16+
~ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17+
~ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18+
~ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19+
~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20+
~ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21+
~ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22+
~ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
~ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24+
~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25+
-->
26+
27+
<!--
28+
Integrates the CookieScript tool to manage cookie consent.
29+
30+
Displays a cookie popup notification, and processes user
31+
cookie consent preferences.
32+
-->
33+
34+
{{ $id := site.Params.cookieScript.id }}
35+
36+
{{ if $id }}
37+
{{ partial "scripts/cookie-script.html" (dict "cookie_script_id" $id) }}
38+
{{ end }}

0 commit comments

Comments
 (0)