0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/frontend/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
..
tpl Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
asset.js
author.js
authors.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
body_class.js
cancel_link.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
concat.js
content.js Updated default accent color for content cta 2021-03-09 18:06:00 +05:30
date.js Updated default format for date helper to locale-based date string (#12733) 2021-03-05 13:35:31 +00:00
encode.js
excerpt.js
facebook_url.js
foreach.js Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
get.js
ghost_foot.js Updated ghost_head & ghost_foot to work with tags 2020-07-10 14:20:24 +02:00
ghost_head.js 🐛 Fixed AMP validation warning from accent color style tag (#12771) 2021-03-17 11:49:42 +00:00
has.js
img_url.js
index.js
is.js
lang.js
link.js
link_class.js
meta_description.js
meta_title.js
navigation.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
page_url.js
pagination.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural.js
post_class.js
prev_post.js
price.js Fixed 0 amount in new price helper 2021-02-25 20:08:54 +05:30
raw.js
reading_time.js
t.js
tags.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
title.js
twitter_url.js
url.js