afewthings
afewthings

Reputation: 53

Jekyll site.categories is empty

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

Answers (1)

afewthings
afewthings

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

Related Questions