Skip to content

Commit 6425f19

Browse files
committed
Use blog layout for blog listing and posts
1 parent 7f9e516 commit 6425f19

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
filter :colorize_syntax,
3535
:colorizers => {:javascript => :pygmentsrb}
3636
layout 'changes' if version[0] == '*'
37-
layout item[:layout] || 'default'
37+
layout item[:layout] || 'blog'
3838
end
3939
end
4040

content/changes/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: GitHub API Changes
3+
layout: blog
34
---
45

56
<%= render '_changes', :changes => api_changes %>

layouts/blog.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<%= render 'head' %>
2+
3+
<body class="blog">
4+
<%= render 'header' %>
5+
6+
<div class="wrapper blog">
7+
<div class="content">
8+
<%= yield %>
9+
</div>
10+
</div>
11+
12+
<%= render 'footer' %>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)