Last Updated on February 23, 2023
How to use multiple words in Jekyll categories
If you are using categories in your Jekyll front matter then it’s incredibly useful to be able to use multiple words. By default Jekyll will treat multiple words with spaces between them as different keywords. For example this post would be assigned two categories: troubleshooting and Jekyll. If you’re using a category archive plugin this splitting causes problems.
The answer is blissfully simple. All you need to do is wrap multiple word category names in square brackets.
For example, this post is in the
[Troubleshooting Jekyll] category.