Reputation: 53
I have tried this code {{site.categories | inspect}}
in default.html, but it returns empty space like this {}
.
My post has a front matter that includes categories: apple
.
What have I missed?
Upvotes: 1
Views: 335
Reputation: 53
oh i found..
My jekyll theme post was referenced from 'docs' folder, but jekyll said every posts should be placed in _post folder. so jekyll site
variable could not read categories of posts in docs folder.
Upvotes: 1