blog.posts

Available Since: V1.0.0

Chunk used to format a blog post when showing a list of blog posts.

<article class="blog-post">
	<header>
		<h2>[[if &subject=`[[+link]]` &operator=`empty` &then=`[[+title]]` &else=`<a href="[[+link]]">[[+title]]</a>`]] [[if &subject=`[[+subtitle]]` &operator=`!empty` &then=`<span>[[+subtitle]]</span>`]]</h2>
		<ul class="post-info">
			<li class="author">[[+byLabel]] [[+author_name]]</li>
			<li class="date">[[date &format=`%d %F %Y` &time=`[[+published]]`]]</li>
		</ul>
	</header>
	<section class="post-content">
		[[if &subject=`[[+imgsrc]]` &operator=`!empty` &then=`<div class="blog-thumb"><img src="[[+imgsrc]]" alt="[[+imgtitle]]" /></div>`]]
		[[+abstract]]
		[[if &subject=`[[+link]]` &operator=`!empty` &then=`<div class="blog-continue"><a href="[[+link]]" rel="nofollow">[[+continueLabel]]</a></div>`]]
	</section>
</article>
Placeholder Description
title The title of the post.
subtitle The subtitle of the post.
link The link to the full post.
byLabel The label text for the author; defaults to By.
author_name The name of the post author.
published The date and time that the post was published.
imgsrc The address to load the posts featured image from.
imgtitle The title for the featured image.
abstract The abstract of the post.
continueLabel The label to use for continue reading links; defaults to Continue Reading.



TOP