Hexo 4.2.0 发布,快速简洁且高效的博客框架

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

猜你喜欢

转载自www.oschina.net/news/112308/hexo-4-2-0-released