So if you may or may not know, Google rolled out Amp'd pages and displaying these websites that are 'Amp ready' higher on the search results. Without getting into the details of Amp, we need to change a few html tags (thanks Google).
The problem we're facing right now is changing <img src="">
tags to <amp-img src="">
. We're using WYGWAM and CE-Image and allowing authors to upload images to the main content area. On the template side of things, we're wrapping the main content with ce_img:bulk to resize all images.
Is there a way to change the img tag with amp-img tag?
{exp:ce_img:bulk max_width="780" bucket="site" hide_relative_path="yes" attributes="itemprop='image'"}
{content}
{/exp:ce_img:bulk}
Amp documentation: https://ampbyexample.com/components/amp-img/
Any help would be great!