Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Order of hierarchical/categories should match source folder layout #33
Jekyll's inference of flat
In my case, under my Jekyll root, I have:
and in the generated
with the default url for the post (which gets inserted in templates referencing that post) being in reverse order, pointing to the latter:
This is unintuitive in two respects:
It is common to want some degree of hierarchy in a generated site. It only makes sense for the source hierarchy to be mirrored for posts (where it is mirrored at all -- I understand and respect that
Got this working at http://github.com/tomo/jekyll/tree/hierarchical_categories, last 2 commits.
The features and tests assumed that categories would show up in the URL in alphabetical order. I changed them to assume that categories should show up in the order specified by the directory layout or in the YAML.
I've left this dormant forever, but yes, this is still a half-valid issue: specifically, the sort applied to the category list during permalink generation is nonsensical and coerces