Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML部分能否考虑与主流markdown博客建立一致规范 #39

Open
hjb2722404 opened this issue Nov 30, 2016 · 3 comments
Open

YAML部分能否考虑与主流markdown博客建立一致规范 #39

hjb2722404 opened this issue Nov 30, 2016 · 3 comments

Comments

@hjb2722404
Copy link

比如我需要将jekyll的博客内容导入到gitblog里来,那么在jekyll里YAML部分使用的是"---...---"来标识YAML部分,而gitblog则使用了""来标识,这样就导致需要将几百篇markdown文件挨个改一遍(当然可以使用程序处理,但编程还是很费时间),所以能否考虑这里能否考虑使用config来配置,包括YMAL里面的字段,如果也能使用config配置是不是会更灵活一点

@vc12345679
Copy link
Collaborator

用sed批量改啊

@hjb2722404
Copy link
Author

哈哈,虽然sed也简单,但是如果能用config配置的话,对于那些对Linux和编程不是太熟悉的朋友可能会更友好一点

@vc12345679
Copy link
Collaborator

  1. 各家blog的markdown都有各自的定义,种类繁多,我个人的理解是,能用一两行自定义参数的sed解决的问题,没有精力同时也没必要去考虑兼容。
  2. 如果每篇都要有对应的config文件,或者在同一个config文件里有对应的选项,我觉得反而不够灵活,跟jockchou 写个md文件往文件夹里一扔就是一篇博客 的设想不太一致。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants