我在使用草稿功能。在我认为草稿写得很好之后,我尝试通过hexo publish将其转换为post。
但是,这个命令似乎放弃了tags和category信息,并使用了支架的信息。
示例
我写了一份草稿如下:
---
title: My awesome post on hexo
category:
- hexo
tags:
- hexo
---
The content of this post我的scaffolds/post.md看起来像:
---
title: {{ title }}
date: {{ date }}
category:
- misc
tags:
- untagged
---在hexo publish之后,创建的帖子是:
---
title: My awesome post on hexo
category:
- misc
tags:
- untagged
---
The content of this post问题
tags和category来阻止hexo,并在hexo publish时使用牵伸法?发布于 2018-09-15 06:15:35
结果表明,如果未指定属性,则将从草案继承属性。
因此,解决方案是从tags和category属性中删除scaffold/post.md属性。
---
title: {{ title }}
date: {{ date }}
---https://stackoverflow.com/questions/52234026
复制相似问题