Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion site/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@

import './modules/navbar/navbar';
import './modules/go-top-button';
import './modules/cookie-notice';
106 changes: 0 additions & 106 deletions site/assets/js/modules/cookie-notice.js

This file was deleted.

1 change: 0 additions & 1 deletion site/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
@import "modules/checkbox";
@import "modules/redirect-screen";
@import "modules/loader";
@import "modules/cookie-notice";

@import "pages/landing";

Expand Down
129 changes: 0 additions & 129 deletions site/assets/scss/modules/_cookie-notice.scss

This file was deleted.

3 changes: 3 additions & 0 deletions site/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ disableKinds = ['taxonomy', 'term']
[params.gtm]
id = 'GTM-T6NZS3S'

[params.cookieScript]
id = '38b1283993fe8d87c0678be39b07ada2'

[security]
[security.exec]
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|HOME)$']
Expand Down
2 changes: 1 addition & 1 deletion site/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/SpineEventEngine/SpineEventEngine.github.io
go 1.22.0

require (
github.com/SpineEventEngine/documentation/docs v0.0.0-20251219134029-fa2a7bc2f266 // indirect
github.com/SpineEventEngine/documentation/docs v0.0.0-20251222151322-354f5188bf68 // indirect
github.com/TeamDev-Ltd/site-commons v0.0.0-20251202150534-a795438915ff // indirect
)
4 changes: 2 additions & 2 deletions site/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/SpineEventEngine/documentation/docs v0.0.0-20251219134029-fa2a7bc2f266 h1:UFv+IDkXRivFdj+fshCWlSZcnBuUZarYiKdgCJY3B64=
github.com/SpineEventEngine/documentation/docs v0.0.0-20251219134029-fa2a7bc2f266/go.mod h1:0lSB4kPZY9Qk429mepYiraNIEucYDIwiNVhJ3Wn3gKo=
github.com/SpineEventEngine/documentation/docs v0.0.0-20251222151322-354f5188bf68 h1:jv/OOMpj/9iPvw/rY1UTotFffK377bSqfqLNbMo7dDM=
github.com/SpineEventEngine/documentation/docs v0.0.0-20251222151322-354f5188bf68/go.mod h1:0lSB4kPZY9Qk429mepYiraNIEucYDIwiNVhJ3Wn3gKo=
github.com/TeamDev-Ltd/site-commons v0.0.0-20251202150534-a795438915ff h1:8kjfGJhf6LeS+IlK9NRktxtcv6O/WDneBuQD3QLPGIs=
github.com/TeamDev-Ltd/site-commons v0.0.0-20251202150534-a795438915ff/go.mod h1:atDeksDWBzsIidpW6Ivz2yYHwp2JPa1i1KXIxkctQ3c=
1 change: 1 addition & 0 deletions site/layouts/_partials/scripts/head-scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
{{ partial "scripts/head/gtm.html" . }}
{{ partial "scripts/head/jquery.html" . }}
{{ partial "scripts/head/docsearch.html" . }}
{{ partial "scripts/head/cookie-notice.html" . }}
38 changes: 38 additions & 0 deletions site/layouts/_partials/scripts/head/cookie-notice.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--
~ Copyright 2025, TeamDev. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Redistribution and use in source and/or binary forms, with or without
~ modification, must retain the above copyright notice and the following
~ disclaimer.
~
~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
~ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
~ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
~ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
~ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
~ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
~ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
~ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
~ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

<!--
Integrates the CookieScript tool to manage cookie consent.

Displays a cookie popup notification, and processes user
cookie consent preferences.
-->

{{ $id := site.Params.cookieScript.id }}

{{ if $id }}
{{ partial "scripts/cookie-script.html" (dict "cookie_script_id" $id) }}
{{ end }}