AMP

amp-imgur

Description

Displays an Imgur post.

 

Required Scripts

<script async custom-element="amp-imgur" src="https://cdn.ampproject.org/v0/amp-imgur-0.1.js"></script>

Usage

This extension creates an iframe and displays an imgur post.

<amp-imgur
  data-imgur-id="f462IUj"
  layout="responsive"
  width="540"
  height="663"
></amp-imgur>

Attributes

data-imgur-id (required)

The id of the Imgur post.

Album ids should prefixed with a/ like a/ZF7NS3V.

You can confirm this in the post's url. It should include a/ before the rest of the id, like on: https://imgur.com/a/ZF7NS3V

width (required)

The width of the Imgur post.

height (required)

The height of the Imgur post.

Common attributes

This element includes common attributes extended to AMP components.

Validation

See amp-imgur rules in the AMP validator specification.

Besoin d'une aide supplémentaire ?

Vous avez lu ce document une douzaine de fois mais il ne répond pas à toutes vos questions ? D'autres personnes ont peut-être eu le même sentiment. Contactez-les sur Stack Overflow.

Se rendre sur Stack Overflow
Vous avez trouvé un bug ou une fonctionnalité manquante ?

Le projet AMP encourage fortement votre participation et vos contributions ! Nous espérons que vous deviendrez un membre régulier de notre communauté open source, mais nous serons également ravis de recevoir des contributions ponctuelles concernant les questions qui vous intéressent particulièrement.

Se rendre sur GitHub