Skip to content

Commit e4c03bb

Browse files
committed
Use guides-layout for guides
1 parent efe63a4 commit e4c03bb

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
compile '/guides/*' do
3636
filter :kramdown, :toc_levels => [2]
3737
filter :erb
38-
layout item[:layout] || 'default'
38+
layout item[:layout] || 'guides'
3939
end
4040

4141
compile '*' do

content/guides/index.md

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

56
# Development Guides

layouts/guides.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<%= render 'head' %>
2+
3+
<body class="api">
4+
<%= render 'header' %>
5+
6+
<div class="sub-nav">
7+
<h2><a href="/guides/">Guides</a></h2>
8+
9+
<ul>
10+
<li><a href="/guides/getting-started/">Getting Started</a></li>
11+
<li><a href="/guides/basics-of-authentication/">Authentication</a></li>
12+
<li><a href="/guides/rendering-data-as-graphs/">Data as Graphs</a></li>
13+
<li><a href="/guides/working-with-comments/">Working with Comments</a></li>
14+
</ul>
15+
</div>
16+
17+
<div class="wrapper guides">
18+
<%= yield %>
19+
</div>
20+
21+
<%= render 'footer' %>
22+
</body>
23+
</html>

0 commit comments

Comments
 (0)