Jekyll 支持两种结构:
我的个人博客并非用于发布新闻,即使非常旧的博客,也会不断更新维护, 所以无需添加时间标识,直接使用 title 即可。
如果需要多个版本,为避免出现冲突,可以在 title 中添加序号。如 II 或 2。
Jekyll 支持 published 标记,设置为 false 就可以避免被转换发布。
这本身很不错,但是这些草稿和正常发布的文件混淆在一起,无法清晰区分。
所以我创建了 _draft 目录,用于存放草稿。在文章准备好之后拷贝到 _posts
目录即可。
p.s. 话说相比 published 标记,我更喜欢 draft,如果支持的话。
Creating Excerpts in Jekyll with Wordpress-style <!--more--> HTML Comments
http://stackoverflow.com/questions/9602936/how-to-add-a-table-of-contents-to-jekyll-blog-post http://stackoverflow.com/questions/13481572/jekyll-automatic-table-of-contents http://du1abadd.org/2010/usr/make_toc_support_for_jekyll_with_rdiscount.html
之前的博客使用 Vimwiki 管理,可以无需转换或发布,直接使用 Vim 即可简单浏览。
_posts/*.md 文档理论上只会作为内容输出,其中的代码(尤其是 Jekyll 使用的模板
代码,及其 pre > code 中的代码,应该合理转义处理。但是实际上 Jekyll 没有这样
做,导致一些代码没有符合期望。
Published on 2013-02-13