trophy-jekyll icon indicating copy to clipboard operation
trophy-jekyll copied to clipboard

Category multiple words split incorrectly

Open unechimere33 opened this issue 6 years ago • 0 comments

Using a multi word category such as:

categories: [Adobe Photoshop Skills]

Creates three categories instead of. The same is true if you use "" and ''.

Expected behavior would be to have this be one category.

It appears that this bug was introduced in this commit when sorting categories: https://github.com/thomasvaeth/trophy-jekyll/commit/b43d9497df97d775ede7b4960cc8c9185cbec342#diff-d169fb3096abccb74dec9e6203459b08R7

As a workaround, using the following categories-tab include works:

https://github.com/thomasvaeth/trophy-jekyll/blob/7e5bdd279c186a9aba558ac90a3aa20086101160/_includes/categories-tab.html

A better fix would be to fix the sort method to respect multiple-word categories.

unechimere33 avatar Apr 04 '20 10:04 unechimere33