Skip to content

Enable amp-img => img transformation for hero images#880

Merged
sebastianbenz merged 4 commits intomainfrom
enable-hero-img
Aug 3, 2020
Merged

Enable amp-img => img transformation for hero images#880
sebastianbenz merged 4 commits intomainfrom
enable-hero-img

Conversation

@sebastianbenz
Copy link
Copy Markdown
Collaborator

No description provided.

@google-cla google-cla bot added the cla: yes label Jul 30, 2020
}
}
node.attribs['i-amphtml-ssr'] = '';
node.attribs['data-hero'] = '';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this added just so developers are aware of the element that was identified as the hero? It's not required for validation as far as I can tell.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct!

Co-authored-by: Weston Ruter <westonruter@google.com>
@sebastianbenz sebastianbenz merged commit 2cc4aa8 into main Aug 3, 2020
@sebastianbenz sebastianbenz deleted the enable-hero-img branch August 3, 2020 11:58
@sebastianbenz
Copy link
Copy Markdown
Collaborator Author

Thanks Weston!

tharders pushed a commit that referenced this pull request Aug 17, 2020
* Enable amp-img => img transformation for hero images

* update readme

* mark generated hero images

* Improve readme

Co-authored-by: Weston Ruter <westonruter@google.com>

Co-authored-by: Weston Ruter <westonruter@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants