hexo-renderer-org icon indicating copy to clipboard operation
hexo-renderer-org copied to clipboard

如果主题中自定义了 Front-matter 关键字

Open ctaoist opened this issue 8 years ago • 3 comments

这种情况有解决的办法吗?

ctaoist avatar Jan 03 '17 12:01 ctaoist

想了想暂时似乎没有什么办法。。

xcodebuild avatar Jan 10 '17 15:01 xcodebuild

@275761919 可以修改这个包中的read_info然后提交PR,或者自己写个filter插件自行处理也可以

driftcrow avatar Feb 11 '17 15:02 driftcrow

我觉得可以这样,你在org-mode中以 #+HEXO-CUSTOM-XXXX: 开头的字段都是用户自定义的front-matter,然后把XXXX解析出来,就行了。题主要是会写的话可以扩展下功能试试。。。read-info.js文件是解析front-matter的,顺便把这个https://github.com/CodeFalling/hexo-renderer-org/issues/47 一起实现了 :smile:

frapples avatar May 12 '17 12:05 frapples