mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 19:07:56 +09:00
Add solitude
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
.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++
|
||||
Reference in New Issue
Block a user