From 1650edc8aaeb6f31eb72a4857bda50124e02d6d6 Mon Sep 17 00:00:00 2001 From: terwer Date: Thu, 30 Mar 2023 11:10:15 +0800 Subject: [PATCH] fix: Allow toc in hexo as default --- utils/platform/github/hexo/hexoYamlConverterAdaptor.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/platform/github/hexo/hexoYamlConverterAdaptor.ts b/utils/platform/github/hexo/hexoYamlConverterAdaptor.ts index 9a6f8a4e..c54476d9 100644 --- a/utils/platform/github/hexo/hexoYamlConverterAdaptor.ts +++ b/utils/platform/github/hexo/hexoYamlConverterAdaptor.ts @@ -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转换的才需要)