Jekyll 支持两种结构:
我的个人博客并非用于发布新闻,即使非常旧的博客,也会不断更新维护, 所以无需添加时间标识,直接使用 title 即可。
如果需要多个版本,为避免出现冲突,可以在 title 中添加序号。如 II 或 2。
Jekyll 支持 published 标记,设置为 false 就可以避免被转换发布。
这本身很不错,但是这些草稿和正常发布的文件混淆在一起,无法清晰区分。
所以我创建了 \ndraft 目录,用于存放草稿。在文章准备好之后拷贝到 \nposts
目录即可。
p.s. 话说相比 published 标记,我更喜欢 draft,如果支持的话。
Creating Excerpts in Jekyll with Wordpress\nstyle <!\n\nmore\n\n> HTML Comments
https://stackoverflow.com/questions/9602936/how\nto\nadd\na\ntable\nof\ncontents\nto\njekyll\nblog\npost https://stackoverflow.com/questions/13481572/jekyll\nautomatic\ntable\nof\ncontents https://du1abadd.org/2010/usr/make\ntoc\nsupport\nfor\njekyll\nwith\nrdiscount.html
\n Jekyll Draft Publishing Plugin \n Jekyll Draft Posts
之前的博客使用 Vimwiki 管理,可以无需转换或发布,直接使用 Vim 即可简单浏览。
\nposts/\n.md 文档理论上只会作为内容输出,其中的代码(尤其是 Jekyll 使用的模板
代码,及其 pre > code 中的代码,应该合理转义处理。但是实际上 Jekyll 没有这样
做,导致一些代码没有符合期望。