Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor learn site "order.yml" file #38

Closed
ajpiano opened this issue Oct 11, 2012 · 4 comments
Closed

Honor learn site "order.yml" file #38

ajpiano opened this issue Oct 11, 2012 · 4 comments

Comments

@ajpiano
Copy link
Member

ajpiano commented Oct 11, 2012

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
Copy link
Member

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
Copy link
Member Author

ajpiano commented Oct 11, 2012

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
Copy link
Member Author

ajpiano commented Oct 12, 2012

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
Copy link
Member Author

ajpiano commented Oct 12, 2012

@ajpiano ajpiano closed this as completed Oct 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants