How can I add a new category?
Desgard opened this issue ยท 5 comments
Desgard commented
How can I add a new category?
I add code in categories.yml
and add a html file in category folder, but my post can't find the category which I added.
zhangxulong commented
categories.yml
categories.html
tag.yml
tag.html
zhangxulong commented
modify your add html's content
nandomoreirame commented
Run rake task for create categories;
Look here: https://github.com/nandomoreirame/nandomoreira-jekyll-theme/blob/master/Rakefile#L131-L159
zhangxulong commented
good good is good, I understand it . change the new-tag and new-category as you want add .
and run
rake tag
rake new-category
will add the html files and modify yml contends as append.
thanks
now I knew the rakefile is some functions not just the default: rake public.
Desgard commented
Thx for the answers of @zhangxulong and author! ๐