Closed katafrakt closed 10 years ago
So I tested this on Jekyll 2.4.0 and doesn't seem to work properly.
Using the test posts in my gh-pages
branch for Skinny Bones any of the posts with categories: articles
don't show breadcrumbs at all. Posts with categories: media
show fine. Not sure why the category name would effect this, but it does.
That's weird. I'll take a look.
if !page.categories.empty?
so I changed it into its own way to check for array length (if page.categories != empty
). Seems to work for me again.
Apparently as for jekyll 2.4.0 (I don't know about earlier versions)
page.categories
is always an array, making the conditionif page.categories
insufficient - leading to render ugly breadcrumbs likeHOME / /
.I've added additional condition to check if aforementioned array is not empty.