Skip to content

Commit

Permalink
➕ feat(amp): Add amp-consent extension to default layout
Browse files Browse the repository at this point in the history
This commit introduces the `amp-consent` extension into the HEAD element of the `_layouts/default.html` template file in our Jekyll theme.

The addition of the `amp-consent` extension is a crucial step towards the development of a fully functional cookie consent notice. This extension enables the cookie consent notice to display appropriately and collect user consent effectively.

This change ensures that our Jekyll theme is compliant with user consent requirements.

See: ✨ Add Cookie Consent Notice Banner 🍪 #44
  • Loading branch information
chriskyfung committed Mar 8, 2024
1 parent 1d9af19 commit a4f2826
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{% seo %}
<link as="script" href="https://cdn.ampproject.org/v0.js" rel="preload">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-consent" src="https://cdn.ampproject.org/v0/amp-consent-0.1.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
{%- if site.adsense.client_id and site.adsense.auto_ads != false -%}
<script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"></script>
Expand Down

0 comments on commit a4f2826

Please sign in to comment.