diff options
Diffstat (limited to 'source/layouts')
-rw-r--r-- | source/layouts/layout.erb | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 5ba23c1..b0cba82 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -28,27 +28,22 @@ <div class="col-md-3"> <h1>sublab</h1> </div> - <div id="moods" class="col-md-9"> - <%= yield_content :moods %> - </div> </div> </div> <div class="row"> - - <div class="col-md-3"> <%= partial "navigation" %> - <hr /> - <%= partial "banner" %> - <hr /> - <%= partial "status" %> - </div> + </div> + <% if (section = current_page.data.section) %> + <%= partial "nav_#{section}" %> + <% end %> + + <div class="row"> <div class="col-md-9"> <%= yield %> </div> - - </div> <!-- end main row --> + </div> </div> <!-- end container --> </body> |