mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 11:06:32 +09:00
16 lines
731 B
Plaintext
16 lines
731 B
Plaintext
.card-widget.card-recent-post
|
|
.item-headline
|
|
i.solitude.st-map-line
|
|
span= _p('aside.newpost')
|
|
.aside-list
|
|
- let index = 1
|
|
each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1)
|
|
if index <= 5
|
|
.aside-list-item
|
|
a.thumbnail(href=url_for(post.path) title=post.title)
|
|
img(alt=post.title src=post.cover)
|
|
.content
|
|
a.title(href=url_for(post.path) title=post.title)= post.title
|
|
if post.categories.data[0]
|
|
a.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
|
|
- index++ |