andrii
March 26, 2021, 2:41pm
1
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?
Kevin
March 26, 2021, 3:01pm
2
@andrii please upgrade your version of Ghost, this bug was fixed in 4.1.0 (latest at time of posting is 4.1.2)
1 Like
andrii
March 27, 2021, 3:44pm
3
Thanks @Kevin !
After update, most AMP pages passed the test.
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…
andrii
March 29, 2021, 12:33pm
4
@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.