From 1ce4a5cf9294522809e801f2e4983552e02b45b9 Mon Sep 17 00:00:00 2001 From: Britney Wang Date: Fri, 11 Oct 2024 15:24:11 +0800 Subject: [PATCH 1/2] Run cookie policy before GTM --- templates/includes/layout.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/includes/layout.html b/templates/includes/layout.html index 6c0e1ec..00c6492 100644 --- a/templates/includes/layout.html +++ b/templates/includes/layout.html @@ -3,6 +3,8 @@ + + - + From e325bdd3934cd6ea3096ba84d916ae4ffd188371 Mon Sep 17 00:00:00 2001 From: Britney Wang Date: Thu, 24 Oct 2024 12:50:49 +0800 Subject: [PATCH 2/2] Update cookie policy --- package.json | 2 +- yarn.lock | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 639c113..700675f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "clean": "rm -rf node_modules yarn-error.log css static/css *.log *.sqlite _site/ build/ .jekyll-metadata .bundle docs/ templates/landscape/ templates/documentation-builder/ static/media" }, "dependencies": { - "@canonical/cookie-policy": "3.4.0", + "@canonical/cookie-policy": "^3.6.4", "@canonical/global-nav": "2.7.0", "autoprefixer": "10.4.1", "sass-lint": "1.13.1", diff --git a/yarn.lock b/yarn.lock index 46f0dc1..af228cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -890,6 +890,11 @@ resolved "https://registry.yarnpkg.com/@canonical/cookie-policy/-/cookie-policy-3.4.0.tgz#0d6708da340df5867fd2cc9dbd95538c46f20cf8" integrity sha512-cdVqxQmGu+j+Q86UobihWWVFzGzHlekFeMFxlbRpm+yqxEOUCrLkA9/t/RsMfLNDToP2ECPgsMbS20aPlA2tIg== +"@canonical/cookie-policy@^3.6.4": + version "3.6.4" + resolved "https://registry.yarnpkg.com/@canonical/cookie-policy/-/cookie-policy-3.6.4.tgz#895c3770f621b73d88b0d5843c43a32d99e4a462" + integrity sha512-kfwamTpAaBhtH5TzlMb8wE814a8lIbONUuSYnS7VPiHDfcdmw4NoBPNpldmNY1j3CAT5vMKOx5kulRTWpEXpag== + "@canonical/global-nav@2.7.0": version "2.7.0" resolved "https://registry.yarnpkg.com/@canonical/global-nav/-/global-nav-2.7.0.tgz#6a61cba769a367c984b89bb7c4286a674f88354a"