我想有这样的结构在我的杰奇网站:如何在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
但是,这是行不通的。有任何想法吗?