gaoyoubo / hexo-client

hexo-client: A cross-platform hexo client, build on electron.
https://www.mspring.org/tags/HexoClient/
Apache License 2.0
730 stars 79 forks source link

建议增加Front-matter的模板配置项 #69

Open deanjoson opened 5 years ago

deanjoson commented 5 years ago

每个新增的文章都会添加固定的Front-matter只是值不一样,建议在配置页面增加配置项,可以在书写文章的时候选择已配置的Front-matter,直接填写值就行,这样增加便利性并且可以减少Front-matter的title值写错的风险

gaoyoubo commented 5 years ago

固定的Front-matter是由用户自己配置,还是系统内置呢? 因为我在使用过程中很少用到Front-matter,所以这块的功能没深入研究。

deanjoson commented 5 years ago

是主题所支持的吧,我用到的主题就有很多的定义的front-matter,所以如果有一个能自定义front-matter的标题供选择就行,好比目前标签的选择一样,既可以选择也可以录入就可。当然这不是必须功能,只是优化建议。参见主题中关于Front-matter的配置:https://github.com/blinkfox/hexo-theme-matery/blob/develop/README_CN.md

nygula commented 4 years ago

是主题所支持的吧,我用到的主题就有很多的定义的front-matter,所以如果有一个能自定义front-matter的标题供选择就行,好比目前标签的选择一样,既可以选择也可以录入就可。当然这不是必须功能,只是优化建议。参见主题中关于Front-matter的配置:https://github.com/blinkfox/hexo-theme-matery/blob/develop/README_CN.md

你的建议和我想的是一样的. 我用的主题是xup,里面放置缩略图的是thumbnail.而不是image...每次都得手动输入这个词.