首页的文章隐藏
安装插件
安装
在安装之前,先卸载官方的插件,否则会引起冲突。
1234# 卸载官方插件$ npm uninstall hexo-generator-index# 安装新插件$ npm install hexo-generator-index-custom --save
配置
在 [you_blog] 根目录下修改_config.butterfly.yml中添加以下配置:
12345index_generator: path: '' per_page: 10 order_by: -date pagination_dir: page
修改侧边栏最近发布
修改 [you_blog]\Blog\themes\butterfly\layout\includes\widget\card_recent_post.pug
1234567891011121314151617if theme.aside.card_recent_post.enable .card-widget.card-recent-post .item-headline i.fas ...
基本语法
基本语法
元素
Markdown 语法
标题(Heading)
# H1## H2### H3
粗体(Bold)
**bold text**
斜体(Italic)
*italicized text*
引用块(Blockquote)
> blockquote
有序列表(Ordered List)
1. First item 2. Second item 3. Third item
无序列表(Unordered List)
- First item- Second item- Third item
代码(Code)
code
分隔线(Horizontal Rule)
---
链接(Link)
[title](https://www.example.com)
图片(Image)

扩展语法
元素
Markdown 语法
表格(Table)
`
代码块(Fenced Code Block)
{ "firstName": "Jo ...

