All previously valid AMP pages became invalid with latest Ghost 4 release

<style>:root {--ghost-accent-color: #f8633b;}</style>

Is the root of the issue.

I don’t see it in my existing code, which means Ghost started adding it recently.

Can someone please add amp-custom to the above tag like:
<style amp-custom>...</style>

Here’s a link to my blog post:
https://www.derpycoder.com/how-to-approach-web-design-without-a-designer-in-tow/

2 Likes

It’s a known issue, there’s a fix already in place for the next release

2 Likes

Thanks @Kevin,

I didn’t know issues are being tracked separately in GitHub, else I would have checked there first.

Thanks for a prompt fix.

Hey @DerpyCoder! :wave: We’ve just released the fix for this in 4.1.0, so please go ahead and update with Ghost-CLI :slightly_smiling_face:

1 Like

Thankfully I’m using Ghost Pro and I don’t have to do anything. :upside_down_face:

Thank you @daniellockyer, AMP pages are working without a hitch.

1 Like

Hi,

I’ve today received AMP error messages in search console.

“Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in the document head”
“Referenced AMP URL is self-canonical AMP”

Before updating to 4.0 all AMP pages were fine. Is this related to the above fix? and when will the fix be applied? I’m also on Ghost Pro.

Many thanks.

I am not seeing such errors in my blog post’s amp views.

Did you modify the amp page?

Try adding /amp/#development=1 to the end of your blog post and maybe create a separate ticket.