2014-10-31 107 views
0

我想有这样的结构在我的杰奇网站:如何在Jekyll中为_posts下的每个类别创建一个目录?

_posts php 2014-10-31-this-is-a-test.md ruby 2014-12-01-some-other-test.md

我想在php目录中的所有帖子是在PHP类别,然后在ruby所有帖子是在Ruby类别。这里是我的_config.yml文件:

defaults: - scope: path: "" type: "posts" values: layout: post comments: true share: true - scope: path: "_posts/php" type: "posts" values: category: PHP - scope: path: "_posts/ruby" type: "posts" values: category: Ruby

但是,这是行不通的。有任何想法吗?

回答

相关问题