File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,23 @@ <h2>Categories</h2>
5
5
< hr >
6
6
7
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 %>
8
+ < % chapters = [
9
+ "getting-started",
10
+ "javascript-101",
11
+ "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 >
12
25
< % end %>
13
26
</ ul >
14
27
</ aside >
You can’t perform that action at this time.
0 commit comments