Permalink
Browse files

order the content folders (chapters) in the sidebar in a hand-curated…

… sort
  • Loading branch information...
1 parent a151f6b commit 847b9f7eaf943a70670e6bdf09ac88a266c93ed7 @ajpiano ajpiano committed Nov 5, 2011
Showing with 17 additions and 4 deletions.
  1. +17 −4 layouts/sidebar.html
View
21 layouts/sidebar.html
@@ -5,10 +5,23 @@
<hr>
<ul class="nav">
- <% @items.group_by {|item| item[:filename].split('/')[1] }.each do |section, items| %>
- <% if section != "assets" && section != "dex.md" %>
- <li><a href="/<%= section %>"><%= section.gsub(/-/, " ").upcase %></a></li>
- <% end %>
+ <% chapters = [
+ "getting-started",
+ "javascript-101",
+ "jquery-basics",
+ "using-jquery-core",
+ "events",
+ "effects",
+ "ajax",
+ "plugins",
+ "performance",
+ "code-organization",
+ "custom-events",
+ "how-to"
+ ] %>
+ <% folders = @items.group_by {|item| item[:filename].split('/')[1] } %>
+ <% chapters.each do |section| %>
+ <li><a href="/<%= section %>"><%= section.gsub(/-/, " ").upcase %></a></li>
<% end %>
</ul>
</aside>

0 comments on commit 847b9f7

Please sign in to comment.