mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
feat: aside widget 增加排序(只對page頁和sticky內的有效) feat: aside 增加自定義 widget improvement: readmode 優化 improvement: html結構優化
12 lines
514 B
Plaintext
12 lines
514 B
Plaintext
if theme.aside.card_archives.enable
|
|
.card-widget.card-archives
|
|
.item-headline
|
|
i.fas.fa-archive
|
|
span= _p('aside.card_archives')
|
|
|
|
- let type = theme.aside.card_archives.type || 'monthly'
|
|
- let format = theme.aside.card_archives.format || 'MMMM YYYY'
|
|
- let order = theme.aside.card_archives.order || -1
|
|
- let limit = theme.aside.card_archives.limit === 0 ? 0 : theme.aside.card_archives.limit || 8
|
|
!= aside_archives({ type:type, format: format, order: order, limit: limit })
|