From c2c9ecd633ea5c1e92445deae83de5bc99f38101 Mon Sep 17 00:00:00 2001 From: "Mateusz (Mati) Kepa" Date: Mon, 30 Mar 2026 12:54:40 +0200 Subject: [PATCH 01/13] Squashing multiple commits with cli --- assets/js/custom.js | 65 ++++++++++++++++++++++++++++++++++++++ requirements.txt | 8 ++--- scripts/gtag.js | 69 +++++++++++++++++++++++++++++++++++++++++ static/site.webmanifest | 2 +- 4 files changed, 139 insertions(+), 5 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index a8c7241..edf5904 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -1,3 +1,68 @@ +function addPostHogTag(apiKey, options = {}) { + if (!apiKey || typeof window === 'undefined') return; + + if (!window.posthog) { + !(function (t, e) { + let o; + let n; + let p; + let r; + if (!e.__SV) { + window.posthog = e; + e._i = []; + e.init = function (i, s, a) { + function g(target, method) { + const parts = method.split('.'); + if (parts.length === 2) { + target = target[parts[0]]; + method = parts[1]; + } + target[method] = function () { + target.push([method].concat(Array.prototype.slice.call(arguments, 0))); + }; + } + p = t.createElement('script'); + p.type = 'text/javascript'; + p.async = true; + p.src = s.api_host.replace('.i.posthog.com', '-assets.i.posthog.com') + '/static/array.js'; + r = t.getElementsByTagName('script')[0]; + r.parentNode.insertBefore(p, r); + let u = e; + if (a !== undefined) { + u = e[a] = []; + } else { + a = 'posthog'; + } + u.people = u.people || []; + u.toString = function (withStub) { + let str = 'posthog'; + if (a !== 'posthog') str += '.' + a; + if (!withStub) str += ' (stub)'; + return str; + }; + u.people.toString = function () { + return u.toString(1) + '.people (stub)'; + }; + o = 'init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep'.split(' '); + for (n = 0; n < o.length; n += 1) { + g(u, o[n]); + } + e._i.push([i, s, a]); + }; + e.__SV = 1; + } + })(document, window.posthog || []); + } + + window.posthog.init(apiKey, { + api_host: 'https://eu.i.posthog.com', + defaults: '2026-01-30', + ...options, + }); +} + +addPostHogTag('phc_VXNcrtI3vEl899qY4aKXoHcLxtt08qxMnWHLfnLjPCf'); + /** * Function to add Google Analytics tag dynamically */ diff --git a/requirements.txt b/requirements.txt index 0de69d9..c2e15f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,13 @@ cfgv==3.5.0 distlib==0.4.0 -filelock==3.25.0 +filelock==3.25.2 hugo==0.153.0 -identify==2.6.17 +identify==2.6.18 jsmin==3.0.1 libsass==0.23.0 nodeenv==1.10.0 -platformdirs==4.9.2 +platformdirs==4.9.4 pre_commit==4.5.1 PyYAML==6.0.3 rcssmin==1.2.2 -virtualenv==21.1.0 +virtualenv==21.2.0 diff --git a/scripts/gtag.js b/scripts/gtag.js index 009175d..c536f4d 100644 --- a/scripts/gtag.js +++ b/scripts/gtag.js @@ -1,3 +1,72 @@ +function addPostHogTag(apiKey, options = {}) { + if (!apiKey || typeof window === 'undefined') return; + + if (!window.posthog) { + !(function (t, e) { + let o; + let n; + let p; + let r; + if (!e.__SV) { + window.posthog = e; + e._i = []; + e.init = function (i, s, a) { + function g(target, method) { + const parts = method.split('.'); + if (parts.length === 2) { + target = target[parts[0]]; + method = parts[1]; + } + target[method] = function () { + target.push([method].concat(Array.prototype.slice.call(arguments, 0))); + }; + } + p = t.createElement('script'); + p.type = 'text/javascript'; + p.async = true; + p.src = + s.api_host.replace('.i.posthog.com', '-assets.i.posthog.com') + '/static/array.js'; + r = t.getElementsByTagName('script')[0]; + r.parentNode.insertBefore(p, r); + let u = e; + if (a !== undefined) { + u = e[a] = []; + } else { + a = 'posthog'; + } + u.people = u.people || []; + u.toString = function (withStub) { + let str = 'posthog'; + if (a !== 'posthog') str += '.' + a; + if (!withStub) str += ' (stub)'; + return str; + }; + u.people.toString = function () { + return u.toString(1) + '.people (stub)'; + }; + o = + 'init capture register register_once register_for_session unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep'.split( + ' ' + ); + for (n = 0; n < o.length; n += 1) { + g(u, o[n]); + } + e._i.push([i, s, a]); + }; + e.__SV = 1; + } + })(document, window.posthog || []); + } + + window.posthog.init(apiKey, { + api_host: 'https://eu.i.posthog.com', + defaults: '2026-01-30', + ...options, + }); +} + +addPostHogTag('phc_VXNcrtI3vEl899qY4aKXoHcLxtt08qxMnWHLfnLjPCf'); + /** * Function to add Google Analytics tag dynamically */ diff --git a/static/site.webmanifest b/static/site.webmanifest index e5cb310..917dec5 100644 --- a/static/site.webmanifest +++ b/static/site.webmanifest @@ -17,4 +17,4 @@ "type": "image/jpeg" } ] -} \ No newline at end of file +} From 3d382d7a3a655c955e5cbe63804c21ced770d52f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 11:14:54 +0200 Subject: [PATCH 02/13] dependabot github-actions: bump peter-evans/create-pull-request (#163) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7.0.9 to 8.1.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v7.0.9...v8.1.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-version: 8.1.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/create-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-pr.yaml b/.github/workflows/create-pr.yaml index 59c2c4a..cdcf307 100644 --- a/.github/workflows/create-pr.yaml +++ b/.github/workflows/create-pr.yaml @@ -16,7 +16,7 @@ jobs: git reset --hard develop - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v7.0.9 + uses: peter-evans/create-pull-request@v8.1.1 with: token: ${{ secrets.PR_TOKEN }} commit-message: Update main From ecacc9ce42aa69a8a6af210f16eab05d7d3cdd11 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 11:15:01 +0200 Subject: [PATCH 03/13] dependabot pip: bump platformdirs from 4.9.4 to 4.9.6 (#164) Bumps [platformdirs](https://github.com/tox-dev/platformdirs) from 4.9.4 to 4.9.6. - [Release notes](https://github.com/tox-dev/platformdirs/releases) - [Changelog](https://github.com/tox-dev/platformdirs/blob/main/docs/changelog.rst) - [Commits](https://github.com/tox-dev/platformdirs/compare/4.9.4...4.9.6) --- updated-dependencies: - dependency-name: platformdirs dependency-version: 4.9.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c2e15f9..6ff2180 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ identify==2.6.18 jsmin==3.0.1 libsass==0.23.0 nodeenv==1.10.0 -platformdirs==4.9.4 +platformdirs==4.9.6 pre_commit==4.5.1 PyYAML==6.0.3 rcssmin==1.2.2 From 079ec762e8b0c5489e412b7a183794feb2e0a2cc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 11:15:45 +0200 Subject: [PATCH 04/13] dependabot pip: bump virtualenv from 21.2.0 to 21.2.1 (#165) Bumps [virtualenv](https://github.com/pypa/virtualenv) from 21.2.0 to 21.2.1. - [Release notes](https://github.com/pypa/virtualenv/releases) - [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/virtualenv/compare/21.2.0...21.2.1) --- updated-dependencies: - dependency-name: virtualenv dependency-version: 21.2.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6ff2180..10e8b72 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ platformdirs==4.9.6 pre_commit==4.5.1 PyYAML==6.0.3 rcssmin==1.2.2 -virtualenv==21.2.0 +virtualenv==21.2.1 From ca8d4021a9654cab4b56ffdd13aaca1fc0a58056 Mon Sep 17 00:00:00 2001 From: "Mateusz (Mati) Kepa" Date: Tue, 14 Apr 2026 11:05:30 +0200 Subject: [PATCH 05/13] add CF tracker --- assets/js/custom.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index edf5904..b2d8a5d 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -63,9 +63,9 @@ function addPostHogTag(apiKey, options = {}) { addPostHogTag('phc_VXNcrtI3vEl899qY4aKXoHcLxtt08qxMnWHLfnLjPCf'); -/** * Function to add Google Analytics tag dynamically +/** + * Function to add Google Analytics tag dynamically */ - function addGoogleAnalyticsTag(trackingId) { // Load the gtag.js script asynchronously const script = document.createElement('script'); @@ -87,6 +87,24 @@ function addGoogleAnalyticsTag(trackingId) { // Call the function with your tracking ID addGoogleAnalyticsTag('G-81E77KGMGF'); +/** + * Function to add Cloudflare Web Analytics tag dynamically + */ +function addCloudflareAnalyticsTag(token) { + if (!token || typeof document === 'undefined') return; + + // Avoid injecting the same script multiple times. + if (document.querySelector('script[data-cf-beacon]')) return; + + const script = document.createElement('script'); + script.defer = true; + script.src = 'https://static.cloudflareinsights.com/beacon.min.js'; + script.setAttribute('data-cf-beacon', JSON.stringify({ token })); + document.head.appendChild(script); +} + +addCloudflareAnalyticsTag('81f78840732445d79901d42f93257926'); + /** * Enhanced Cookie Consent Manager From a76fe02c1afe6a227d0de5caeece5e25bf9843b3 Mon Sep 17 00:00:00 2001 From: Mati Kepa <36644582+matikepa@users.noreply.github.com> Date: Tue, 14 Apr 2026 11:14:42 +0200 Subject: [PATCH 06/13] whitespace Added a function to dynamically add Google Analytics tag. --- assets/js/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/custom.js b/assets/js/custom.js index b2d8a5d..9187777 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -63,7 +63,7 @@ function addPostHogTag(apiKey, options = {}) { addPostHogTag('phc_VXNcrtI3vEl899qY4aKXoHcLxtt08qxMnWHLfnLjPCf'); -/** +/** * Function to add Google Analytics tag dynamically */ function addGoogleAnalyticsTag(trackingId) { From 1bcdbe1c33455ddfe8af3e87b1a8336b719e6b66 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:22:39 +0200 Subject: [PATCH 07/13] dependabot pip: bump virtualenv from 21.2.1 to 21.2.4 (#169) Bumps [virtualenv](https://github.com/pypa/virtualenv) from 21.2.1 to 21.2.4. - [Release notes](https://github.com/pypa/virtualenv/releases) - [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/virtualenv/compare/21.2.1...21.2.4) --- updated-dependencies: - dependency-name: virtualenv dependency-version: 21.2.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 10e8b72..d4b3d52 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ platformdirs==4.9.6 pre_commit==4.5.1 PyYAML==6.0.3 rcssmin==1.2.2 -virtualenv==21.2.1 +virtualenv==21.2.4 From 4512646b9e198b78d070d530dad134e7c967fec6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:22:50 +0200 Subject: [PATCH 08/13] dependabot pip: bump identify from 2.6.18 to 2.6.19 (#170) Bumps [identify](https://github.com/pre-commit/identify) from 2.6.18 to 2.6.19. - [Commits](https://github.com/pre-commit/identify/compare/v2.6.18...v2.6.19) --- updated-dependencies: - dependency-name: identify dependency-version: 2.6.19 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d4b3d52..caacb59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ cfgv==3.5.0 distlib==0.4.0 filelock==3.25.2 hugo==0.153.0 -identify==2.6.18 +identify==2.6.19 jsmin==3.0.1 libsass==0.23.0 nodeenv==1.10.0 From 57333d044fdacd40556bef8dda362281b33ed63e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:22:59 +0200 Subject: [PATCH 09/13] dependabot pip: bump filelock from 3.25.2 to 3.29.0 (#171) Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.25.2 to 3.29.0. - [Release notes](https://github.com/tox-dev/py-filelock/releases) - [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst) - [Commits](https://github.com/tox-dev/py-filelock/compare/3.25.2...3.29.0) --- updated-dependencies: - dependency-name: filelock dependency-version: 3.29.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index caacb59..a8dcb75 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ cfgv==3.5.0 distlib==0.4.0 -filelock==3.25.2 +filelock==3.29.0 hugo==0.153.0 identify==2.6.19 jsmin==3.0.1 From 1fade2f476fd1fe90c0c83aa0bcafa0c5dc421ca Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:23:40 +0200 Subject: [PATCH 10/13] dependabot pip: bump pre-commit from 4.5.1 to 4.6.0 (#173) Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.5.1 to 4.6.0. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v4.5.1...v4.6.0) --- updated-dependencies: - dependency-name: pre-commit dependency-version: 4.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a8dcb75..74944b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ jsmin==3.0.1 libsass==0.23.0 nodeenv==1.10.0 platformdirs==4.9.6 -pre_commit==4.5.1 +pre_commit==4.6.0 PyYAML==6.0.3 rcssmin==1.2.2 virtualenv==21.2.4 From 49f556f805edc11f5a37e1586f6ed5c01a660c49 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:23:55 +0200 Subject: [PATCH 11/13] dependabot pip: bump virtualenv from 21.2.4 to 21.3.1 (#176) Bumps [virtualenv](https://github.com/pypa/virtualenv) from 21.2.4 to 21.3.1. - [Release notes](https://github.com/pypa/virtualenv/releases) - [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/virtualenv/compare/21.2.4...21.3.1) --- updated-dependencies: - dependency-name: virtualenv dependency-version: 21.3.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 74944b8..f28d712 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ platformdirs==4.9.6 pre_commit==4.6.0 PyYAML==6.0.3 rcssmin==1.2.2 -virtualenv==21.2.4 +virtualenv==21.3.1 From 77e6eca5da5461e72bea0bdd8037e98cf2c4b226 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:24:13 +0200 Subject: [PATCH 12/13] dependabot github-actions: bump actions/upload-pages-artifact (#168) Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 3 to 5. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v3...v5) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/hugo-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hugo-deploy.yaml b/.github/workflows/hugo-deploy.yaml index 7e80a97..fa505bb 100644 --- a/.github/workflows/hugo-deploy.yaml +++ b/.github/workflows/hugo-deploy.yaml @@ -68,7 +68,7 @@ jobs: run: | hugo --environment prod - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v5 with: path: ./public From 867e684cffe612e3d2b66a2e9cbbda16cdf2142b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 10:52:11 +0200 Subject: [PATCH 13/13] dependabot pip: bump virtualenv from 21.3.1 to 21.3.3 (#177) Bumps [virtualenv](https://github.com/pypa/virtualenv) from 21.3.1 to 21.3.3. - [Release notes](https://github.com/pypa/virtualenv/releases) - [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/virtualenv/compare/21.3.1...21.3.3) --- updated-dependencies: - dependency-name: virtualenv dependency-version: 21.3.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f28d712..41df409 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ platformdirs==4.9.6 pre_commit==4.6.0 PyYAML==6.0.3 rcssmin==1.2.2 -virtualenv==21.3.1 +virtualenv==21.3.3