mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
✨ feat: aside widget 增加部分參數可配置
✨ feat: aside widget的Categories,Tags,post,Archives可配置limit ✨ feat: 整合公告欄配置到aside去 🐛 fix: 修復當flink.yml內容為空時,報錯的bug 💄 fix: 修復darkmode下 aside 查看更多文字顏色太淺的bug
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
.item-headline
|
||||
i.fa.fa-history(aria-hidden="true")
|
||||
span= _p('aside.card_recent_post')
|
||||
.aside-recent-item
|
||||
- site.posts.sort('date', -1).limit(5).each(function(article){
|
||||
.aside-recent-item
|
||||
- var postLimit = theme.aside.card_recent_post.limit === 0 ? site.posts.length : theme.aside.card_recent_post.limit || 5
|
||||
- site.posts.sort('date', -1).limit(postLimit).each(function(article){
|
||||
.aside-recent-post
|
||||
- var link = article.link || article.path
|
||||
- var title = article.title || _p('no_title')
|
||||
|
||||
Reference in New Issue
Block a user