-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: update cookie consent UI configuration
This commit introduces several key updates to further enhance user control over the cookie consent interface and the import of AMP extensions. - Modified to allow enabling or disabling the cookie consent interface by setting `consent=true/false` in the `_config.yml` file. This provides greater flexibility in managing user consent preferences. - Modified to conditionally import the minified `amp-consent.css`, `amp-consent` and `amp-script` extensions. This change optimizes the loading based on the specific needs of the page, improving overall performance. - Modified the `granular-user-consent.html` to allow removing the `data-ampdevmode` attribute from the custom script by setting `consent_dev_mode=false`. This remains particularly useful when building the site with the AMP Optimizer, which generates the hash for the script and inserts the `meta` tag automatically. - Added `consent=true` and `consent_dev_mode=false` in the `_config.yml` file for the demo site. These updates collectively aim to provide users with more control over their site's consent interface and AMP extension usage, while also improving site performance and development efficiency. Additionally, the documentation in the `config-guide.md` has been updated to reflect these changes and provide guidance on how to use this new feature. See: #44
- Loading branch information
1 parent
de253c4
commit 5b3b8dc
Showing
5 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters