Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Perch 2.8 Blocks template example
<perch:blocks>
<perch:before>
<div class="row">
<div class="col-md-6 col-md-offset-3">
</perch:before>
<perch:block type="text" label="Text">
<perch:content id="text" type="textarea" markdown="true" editor="markitup" size="s" label="Text" />
</perch:block>
<perch:block type="pullquote" label="Pull quote">
<blockquote>
<perch:content id="quote" type="textarea" markdown="true" size="xs" label="Quote" />
<cite>&mdash; <perch:content id="cite" type="smarttext" label="By" /></cite>
</blockquote>
</perch:block>
<perch:block type="image" label="Big image">
<figure class="full">
<img src="<perch:content id="image" type="image" width="1600" label="Image" />" class="img-responsive" />
<figcaption><perch:content id="caption" type="smarttext" label="Caption" /></figcaption>
</figure>
</perch:block>
<perch:block type="inlineimage" label="Inline image">
<figure class="inline <perch:content id="class" type="select" options="Pull left|pull-left,Pull right|pull-right" label="Alignment" order="2" />">
<img src="<perch:content id="image" type="image" width="360" density="2" label="Image" order="1" />" class="img-responsive" />
</figure>
</perch:block>
<perch:after>
</div>
</div>
</perch:after>
</perch:blocks>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment