Add solitude

This commit is contained in:
IF-chan
2024-07-05 21:01:19 +08:00
parent 26d71c4fbc
commit 71758b9fce
289 changed files with 23277 additions and 0 deletions
@@ -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++