github pages - How can I create a directory for each category under _posts in Jekyll? -
github pages - How can I create a directory for each category under _posts in Jekyll? -
i trying have such construction in jekyll site:
_posts php 2014-10-31-this-is-a-test.md ruby 2014-12-01-some-other-test.md
i posts in php
directory in php
category, , posts in ruby
in ruby
category. here _config.yml
file:
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
however, doesn't work. ideas?
path: "php"
or path: "ruby"
sets category.
note: any category set in front end matter replace 1 in default config.
jekyll github-pages
Comments
Post a Comment