I want to reorder the pages in the navigation bar using jekyll-plugins / weighted_pages.rb from here .
This plugin works very well on my localhost but github.
I find the navigation bar is empty on the github host which seems like this plugin is not working.
How can I solve this problem?
Copy the weighted_pages.rb code below:
Add a weight attribute to the front of your pages (like weight: 1) and use site.weighted_pages instead of site.pages in your loops.
source share