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.

24 lines
675 B

extends ../layouts/main-sidebar
include components/list.pug
block content
if Array.isArray(posts) && (posts.length > 0)
h3= `Posts with the tag ${tag}.`
ul.uk-list.uk-list-divider
each post in posts
li
a(href=`/post/${post.slug}`).uk-display-block
div= post.title
.uk-article-meta
div(uk-grid).uk-grid-small.uk-text-small
.uk-width-expand
a(href=`/post/${post.slug}`)= moment(post.created).fromNow()
span by
a(href=`/user/${post.author.username}`)=` ${post.author.username}`
else
h3= `There are no posts with the tag ${tag}.`