0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00
ghost/test
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
..
api-acceptance 🐛 Fixed complimentary members' content gating (#12761) 2021-03-15 19:13:48 +13:00
frontend-acceptance 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00
regression 🐛 Fixed __GHOST_URL__ appearing in generated excerpts 2021-03-17 19:12:40 +13:00
unit 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00
utils 🐛 Fixed complimentary members' content gating (#12761) 2021-03-15 19:13:48 +13:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.json Enabled error for "no-shadow" eslint rule 2020-10-27 11:27:37 +13:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00