jquery / 2012-dev-summit

Information regarding the 2012 Developer Summit in DC
14 stars 14 forks source link

Honor learn site "order.yml" file #38

Closed ajpiano closed 12 years ago

ajpiano commented 12 years ago

One thing that perished in my abolition of nanoc from the learn site was the functionality of the order.yml file, which is supposed to define the order (using the "menu_order" column in the WordPress posts table), that articles are presented in the site, as well as preventing articles from being "published" when they shouldn't be (only slugs in the file should be published).

I created this ordered pages plugin for wintersmith to do this, but it isn't quite functional yet. We should get this working, or find a better solution than this plugin.

scottgonzalez commented 12 years ago

You can set menuOrder in the metadata for the post to set the menu_order db column, so it's just a matter of merging that data into the individual files. I'm 99% sure I tested this in node-wordpress :-)

ajpiano commented 12 years ago

Yeah, I know it's working as far as if it was getting passed off to grunt-jquery-content properly, but right now my plugin isn't actually doing the job of figuring out the ordinal position from the order.yml file and actually putting it in the metadata :)

ajpiano commented 12 years ago

This will be complete after the next release of grunt-jquery-content, after this pull request is merged and 0.5.4 is released. We've eliminated wintersmith from the build process and grunt-jquery-content is now doing all the work.

ajpiano commented 12 years ago

https://github.com/jquery/learn.jquery.com/commit/5160f6b9294c55c7745f43dc5a02fed1233f1d54