Displays a Reddit comment or post embed.
|Supported Layouts||fill, fixed, fixed-height, flex-item, responsive|
|Examples||See AMP By Example's amp-reddit example.|
amp-reddit component to embed a Reddit post or comment.
Example: Embedding a Reddit post
<amp-reddit layout="responsive" width="300" height="400" data-embedtype="post" data-src="https://www.reddit.com/r/me_irl/comments/52rmir/me_irl/?ref=share&ref_source=embed"> </amp-reddit>
Example: Embedding a Reddit comment
<amp-reddit layout="responsive" width="400" height="400" data-embedtype="comment" data-src="https://www.reddit.com/r/sports/comments/54loj1/50_cents_awful_1st_pitch_given_a_historical/d8306kw" data-uuid="b1246282-bd7b-4778-8c5b-5b08ac0e175e" data-embedcreated="2016-09-26T21:26:17.823Z" data-embedparent="true" data-embedlive="true"> </amp-reddit>
|data-embedtype (required)||The type of embed, either
|data-src (required)||The permamlink uri for the post or comment.|
|data-uuid||The provided UUID for the comment embed. Supported when
|data-embedcreated||The datetime string for the comment embed. Supported when
|data-embedparent||The datetime string for the comment embed. Supported when
|data-embedlive||Indicates whether the embedded comment should update if the original comment is updated. Supported when
|common attributes||This element includes common attributes extended to AMP components.|
See amp-reddit rules in the AMP validator specification.
You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.Go to Stack Overflow Found a bug or missing a feature?
The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.Go to GitHub