You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
611 B

mixin renderBlogPostFeaturedItem (post)
a(href=`/post/${post.slug}`).uk-display-block.uk-link-reset
div(class='uk-visible@m').uk-margin-small
if post.image
img(src= `/image/${post.image._id}`).responsive
else
img(src="/img/default-poster.jpg").responsive
article.uk-article
h4(style="line-height: 1.1;").uk-article-title.uk-margin-small= post.title
.uk-article-meta
if post.updated
span updated: #{moment(post.updated).format("MMM DD YYYY HH:MM a")}
else
span published: #{moment(post.created).format("MMM DD YYYY HH:MM a")}