Created
October 7, 2012 16:00
-
-
Save drewm/3848748 to your computer and use it in GitHub Desktop.
Perch CMS template for <picture> element (based on example from HTML5 Doctor)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture alt="<perch:content type="text" id="alt" label="Alt" />"> | |
<source src="<perch:content type="image" id="image" label="Image" width="800" />" media="min-width:800px"> | |
<source src="<perch:content type="image" id="image" label="Image" width="480" />" media="min-width:480px"> | |
<source src="<perch:content type="image" id="image" label="Image" width="200" />"> | |
<img src="<perch:content type="image" id="image" label="Image" width="480" />" alt="<perch:content type="text" id="alt" label="Alt" />"> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have to upload images for each resolution, or does perch resizes and makes four copies automatically?