0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit
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
..
adapters Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
api Reverted dropped model usage in post serializer 2021-03-17 20:01:12 +13:00
apps Fixed AMP URLs not being transformed to absolute (#12737) 2021-03-06 09:43:50 +00:00
data Updated fixture copy 2021-03-11 19:20:30 +00:00
helpers 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00
lib Fixed image and gallery cards not having srcset or sizes attributes (#12765) 2021-03-15 21:38:27 +00:00
models Fixed __GHOST_URL__ appearing in settings values after edit (#12738) 2021-03-08 18:41:43 +00:00
server Moved notify out of GhostServer 2021-02-19 20:22:56 +00:00
services Fixed circular dependency warning for the proxy service (#12746) 2021-03-11 16:30:49 +00:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Pointed the v3 unit tests to the actual v3 code 2021-01-22 16:32:03 +13:00