From b5397eb7170e44a66d49832269133012d2c3712f Mon Sep 17 00:00:00 2001 From: "Chris K.Y. FUNG" <8746768+chriskyfung@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20chore:=20update=20changelog=20an?= =?UTF-8?q?d=20version=20number=20to=202.9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: Issue #44 --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e82ffa9..c57170d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # AMP Affiliately Jekyll Theme Changelog +## v2.9.0 (2024-03-08) + +### Added + +- Support set the URL for the privacy policy page in the `_config.yml` file. + +- [#44](https://github.com/chriskyfung/amp-affiliately-jekyll-theme/issues/44) Implemented a Cookie Consent Notice. + - Imported the `amp-consent` extension into the default layout to manage user consent. + - Developed a sophisticated cookie consent interface, enabling granular consent on a per-purpose basis, located in `_includes/consent/granular-user-consent.html`. + - Defined the associated CSS styles for the consent interface in `_includes/css/amp_consent.css`. + - Imported the `amp_consent.css` into the HEAD element of the default layout using the Jekyll include tag, ensuring the styles are loaded at the onset of page rendering. + - Tmported the `granular-user-consent.html` to the default layout just below the `` tag via the Jekyll include tag, guaranteeing immediate visibility of the consent interface upon page load. + +### Changed + +- Made the `amp-script` extension mandatory in the default layout. This change is necessary for enabling custom scripts to access and read consent states stored in the local storage. + +## Changelog + +### Added +- [#44](https://github.com/chriskyfung/amp-affiliately-jekyll-theme/issues/44) Implemented a cookie consent notice banner. + - Integrated the `amp-consent` extension into the default layout to manage user consent. + - Developed a granular cookie consent UI, allowing users to provide consent on a per-cookie basis. The UI is created in the `_includes/consent/granular-user-consent.html` file. + - Defined the associated CSS styles for the granular cookie consent UI in the `_includes/css/amp_consent.css` file. + - Used Jekyll include tag to import the `amp_consent.css` to the HEAD element of the default layout. This ensures that the CSS styles for the consent UI are loaded at the start of the page load. + - Used Jekyll include tag to import the `granular-user-consent.html` to the default layout just below the `` tag. This ensures that the consent UI is immediately visible to users when the page loads. + +### Changed +- Made the `amp-script` extension mandatory in the default layout. This change is necessary for custom scripts that need to read the stored consent states from the local storage. + ## v2.8.0 (2024-01-15) Release v2.8.0 contains various improvements and fixes for the project. The changes are grouped into the following categories: diff --git a/package.json b/package.json index 0243b103..06459ce2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "amp-affiliately-jekyll-theme", "description": "AMP Affiliately is an AMP-ready Jekyll theme for your blogs and websites.", - "version": "2.8.0", + "version": "2.9.0", "scripts": { "convert": "npx gulp convert", "jekyll": "bundle exec jekyll serve", @@ -31,7 +31,7 @@ "amp-jekyll", "jekyll-theme-amp" ], - "author": "Chris K.Y. Fung", + "author": "Chris K.Y. FUNG (https://chriskyfung.github.io/)", "license": "MIT", "engines": { "node": ">=18.12.1",