Skip to content

Commit 75b29d6

Browse files
author
Rebecca Murphey
committed
Merge branch 'master' of github.com:jquery/web-learn-jquery-com
* 'master' of github.com:jquery/web-learn-jquery-com: Use kramdown Iterate over items to make links
2 parents 2499f95 + c6d7247 commit 75b29d6

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ compile '/stylesheet/' do
1515
end
1616

1717
compile '*' do
18-
filter :erb
18+
filter :kramdown
1919
layout 'default'
2020
end
2121

layouts/default.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@
1010
<div id="main">
1111
<%= yield %>
1212
</div>
13-
<div id="sidebar">
14-
<h2>Documentation</h2>
15-
<ul>
16-
<li><a href="http://nanoc.stoneship.org/docs/">Documentation</a></li>
17-
<li><a href="http://nanoc.stoneship.org/docs/3-getting-started/">Getting Started</a></li>
18-
</ul>
19-
<h2>Community</h2>
20-
<ul>
21-
<li><a href="http://groups.google.com/group/nanoc/">Discussion Group</a></li>
22-
<li><a href="irc://chat.freenode.net/#nanoc">IRC Channel</a></li>
23-
<li><a href="http://projects.stoneship.org/trac/nanoc/">Wiki</a></li>
24-
</ul>
13+
<div id="list">
14+
<% @items.each do |item| %>
15+
<a href="<%= item.path %>"><%= item[:title] || 'Untitled' %></a>
16+
<% end %>
2517
</div>
2618
</body>
2719
</html>

0 commit comments

Comments
 (0)