Created
February 10, 2015 17:13
-
-
Save drewm/c81a0b36686dda988547 to your computer and use it in GitHub Desktop.
Perch 2.8 Blocks template example
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
<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>— <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
Hi, it's possible to add perch:before and perch:after in perch:block ?