AMP pages non-valid

I have enabled Ghost AMP pages - but seems all of them are non-valid in Search Console.

Main error
Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in the document head.

Seems the issue is with this code snippet.

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

Any ideas how to solve this error? Or how to edit AMP code in Ghost?

Screen Shot 2021-03-26 at 3.39.58 PM

@andrii please upgrade your version of Ghost, this bug was fixed in 4.1.0 (latest at time of posting is 4.1.2) :slight_smile:

1 Like

Thanks @Kevin!

After update, most AMP pages passed the test. :tada:

However, fyi: if I embed giphy in posts - AMP doesn’t pass validation.

Also, if you embed e.g. SoundCloud - still doesn’t pass AMP validation.

So, seems there should be another fix…

@Kevin also, so an update after I submitted validation in Search Console - pages are valid, but still with warnings.
This is the issue: Missing field “image” in AMP.

Therefore, Ghost AMP won’t show up in some rich results in Google Search.