Skip to content

Commit

Permalink
fix: Vuepress 支持发布为日记
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Oct 12, 2023
1 parent 06b8519 commit 3da0481
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adaptors/api/vuepress/vuepressYamlConverterAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ class VuepressYamlConverterAdaptor extends YamlConvertAdaptor {
link: githubUrl,
}

// 日记
if (post.title.includes("[日记]")) {
yamlFormatObj.yamlObj.article = false
}

// formatter
let yaml = YamlUtil.obj2Yaml(yamlFormatObj.yamlObj)
this.logger.debug("yaml=>", yaml)
Expand Down

0 comments on commit 3da0481

Please sign in to comment.