Hexo 4.2.0 发布了,更新内容如下:
特性
- 默认情况下,在 hexo-server 中禁用缓存 [#3963]
- 禁用此功能后,可以实时预览任何更改(尤其是主题布局)。
- 如果在生产环境中使用 hexo-server 为网站提供服务,则可以通过以下方式启用它:
_config.yml
server:
cache: true
- 将
min_depth:
选项添加到 toc()
[#3997]
<%- toc(page.content, { min_depth: 2 }) %>
// table of content would only include <h2>, <h3> and above
更新说明:https://github.com/hexojs/hexo/releases/tag/4.2.0