Skip to content

Commit

Permalink
Add support for guide chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Feb 19, 2016
1 parent 6b6824e commit 84f44e0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions assets/stylesheets/_modules/_content.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.content {
&__chapter-title {
@include margin-trailer(0);
@include type-weight(bold);
color: color(black);
}

// Auto styling of code blocks
pre {
@extend .excerpt--code;
Expand Down
2 changes: 1 addition & 1 deletion config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
page '/*.xml', layout: false
page '/*.json', layout: false
page '/*.txt', layout: false
page '/guides/*', layout: :sidebar, data: { sidebar: '/_partials/guides_sidebar' }
page '/guides/*', layout: :guide, data: { sidebar: '/_partials/guides_sidebar' }
page '/guides.html', layout: :sidebar, data: { sidebar: '/_partials/guides_sidebar' }
page '/blog/*', data: { sidebar: '/_partials/blog_sidebar' }
page '/blog.html', layout: :sidebar, data: { sidebar: '/_partials/blog_sidebar' }
Expand Down
3 changes: 3 additions & 0 deletions source/layouts/guide.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= wrap_layout :sidebar do
p.content__chapter-title= current_page.data.chapter
= yield

0 comments on commit 84f44e0

Please sign in to comment.