8 changed files with 75 additions and 40 deletions
@ -0,0 +1,12 @@ |
|||
mixin renderBlogPostFeaturedItem (post) |
|||
a(href=`/post/${post.slug}`).uk-display-block.uk-link-reset |
|||
div(class='uk-visible@m').uk-margin-small |
|||
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")} |
@ -0,0 +1,21 @@ |
|||
mixin renderBlogPostListItem (post, postIndex = 1, postIndexModulus = 3) |
|||
a(href=`/post/${post.slug}`).uk-display-block.uk-link-reset |
|||
div(uk-grid).uk-grid-small |
|||
|
|||
div(class='uk-visible@m', class={ |
|||
'uk-flex-first': ((postIndex % postIndexModulus) === 0), |
|||
'uk-flex-last': ((postIndex % postIndexModulus) !== 0), |
|||
}).uk-width-1-3 |
|||
img(src="/img/default-poster.jpg").responsive |
|||
|
|||
div(class='uk-width-1-1 uk-width-2-3@m', class={ |
|||
'uk-flex-first': ((postIndex % postIndexModulus) !== 0), |
|||
'uk-flex-last': ((postIndex % postIndexModulus) === 0), |
|||
}) |
|||
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")} |
Loading…
Reference in new issue