Ghost/core/frontend/apps/amp/lib/helpers
Kevin Ansfield 7b1aa38841
🐛 Fixed AMP validation warning from accent color style tag (#12771)
closes https://github.com/TryGhost/Ghost/issues/12770

AMP pages can't contain bare `<style>` tags, they need to have an attribute like `<style amp-custom>` and there can only be a single `<style amp-custom>` tag in the output.

- removed accent color style tag output from `{{ghost_head}}` (aliased as `{{amp_ghost_head}}`) when in an AMP context
- added a new `{{amp_style}}` helper that can be used to inject styles into the AMP template
  - outputs `:root {--ghost-accent-color: #abc123}` style if an accent color is set
2021-03-17 11:49:42 +00:00
..
amp_analytics.js Updated AMP output to include Google Analytics 2020-07-15 13:43:25 +02:00
amp_components.js Updated AMP output to include Google Analytics 2020-07-15 13:43:25 +02:00
amp_content.js Fixed AMP URLs not being transformed to absolute (#12737) 2021-03-06 09:43:50 +00:00
amp_style.js 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00
index.js 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00