cover:
# display the cover or not (是否顯示文章封面)
index_enable: true
aside_enable: false
archives_enable: false
# the position of cover in home page (封面顯示的位置)
# top/left/right/both
position: top
# horizontal/vertical (文章封面与内容的布局)
direction: vertical
# When cover is not set, the default cover is displayed (當沒有設置cover時,默認的封面顯示)
default_cover:
- https://source.unsplash.com/random/1126x260
post-ui.pug:
mixin postUI(posts)
each article , index in page.posts.data
- const direction = theme.cover.direction
- let horizontalOrVertical = direction === 'vertical' ? 'vertical' : 'horizontal'
.recent-post-item(class=horizontalOrVertical)
想要的功能 | What feature do you want?
新增功能:
_config.butterfly.yml
:post-ui.pug
:css/_page/homepage.styl
:Preview: https://ultravires.github.io/