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.
 
 
 
hexo-theme-yorha/layout/includes/recent-posts.pug

9 lines
293 B

if page.posts.length > 0
#recent-posts
h1 Recent Posts
each post in page.posts.sort('date', -1).limit(10).toArray()
.recent-post-item
a(href=url_for(post.path))= post.title
if post.date
time(datetime=post.date.toJSON())= date(post.date, date_format)