Skip to content

Commit

Permalink
fix: Allow toc in hexo as default
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 30, 2023
1 parent ace6769 commit 1650edc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/platform/github/hexo/hexoYamlConverterAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export class HexoYamlConverterAdaptor
// comments
yamlFormatObj.yamlObj.comments = true

// toc
yamlFormatObj.yamlObj.toc = true

// formatter
let yaml = obj2Yaml(yamlFormatObj.yamlObj)
// 修复yaml的ISO日期格式(js-yaml转换的才需要)
Expand Down

0 comments on commit 1650edc

Please sign in to comment.