Created
January 4, 2020 13:36
-
-
Save husseinalhammad/1227baaf2e115e6efe2daab906f26a69 to your computer and use it in GitHub Desktop.
Perch Blog default post.html template
This file contains 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
<article class="h-entry"> | |
<h1> | |
<a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="p-name"> | |
<perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" /> | |
</a> | |
</h1> | |
<p class="meta"> | |
<time class="dt-published" datetime="<perch:blog id="postDateTime" type="date" label="Date" time="true" format="Y-m-d H:i:s" divider-before="Publishing" />"> | |
<perch:blog id="postDateTime" type="date" time="true" format="%d %B %Y" /> | |
</time> | |
<perch:if exists="authorGivenName"> | |
by <span class="p-author h-card"><perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" /></span> | |
</perch:if> | |
<perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes"> | |
<a href="archive.php?cat=<perch:category id="catSlug" type="slug" />" class="p-category"> | |
<perch:category id="catTitle" type="text" /> | |
</a> | |
</perch:categories> | |
</p> | |
<perch:if exists="image"> | |
<div> | |
<img src="<perch:blog id="image" type="image" width="320" height="240" crop="true" label="Image" order="4" />" alt="<perch:blog id="postTitle" />" /> | |
</div> | |
</perch:if> | |
<div class="description e-content"> | |
<perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="simplemde" markdown="true" size="xxl autowidth" required="true" /> | |
</div> | |
</article> | |
<perch:blog id="excerpt" type="textarea" label="Excerpt" markdown="true" order="3" suppress="true" size="s" /> | |
<perch:blog id="image" type="image" width="50" height="50" crop="true" suppress="true" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment