We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a151f6b commit 847b9f7Copy full SHA for 847b9f7
layouts/sidebar.html
@@ -5,10 +5,23 @@ <h2>Categories</h2>
5
<hr>
6
7
<ul class="nav">
8
- <% @items.group_by {|item| item[:filename].split('/')[1] }.each do |section, items| %>
9
- <% if section != "assets" && section != "dex.md" %>
10
- <li><a href="/<%= section %>"><%= section.gsub(/-/, " ").upcase %></a></li>
11
- <% end %>
+ <% chapters = [
+ "getting-started",
+ "javascript-101",
+ "jquery-basics",
12
+ "using-jquery-core",
13
+ "events",
14
+ "effects",
15
+ "ajax",
16
+ "plugins",
17
+ "performance",
18
+ "code-organization",
19
+ "custom-events",
20
+ "how-to"
21
+ ] %>
22
+ <% folders = @items.group_by {|item| item[:filename].split('/')[1] } %>
23
+ <% chapters.each do |section| %>
24
+ <li><a href="/<%= section %>"><%= section.gsub(/-/, " ").upcase %></a></li>
25
<% end %>
26
</ul>
27
</aside>
0 commit comments