Skip to content

Commit

Permalink
🔖 chore: update changelog and version number to 2.9.0
Browse files Browse the repository at this point in the history
Fix: Issue #44
  • Loading branch information
chriskyfung committed Mar 8, 2024
1 parent 2e08ee3 commit b5397eb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `<body>` 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 `<body>` 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:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b5397eb

Please sign in to comment.