diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-04-28 13:59:22 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-05-02 13:31:07 +0200 |
commit | 9832d63b0d73c76bd167f281a9ceb6b71af4106d (patch) | |
tree | ce5d0e486a6eee52ff0f1a5f1ea7051a91fd1075 /source/layouts | |
parent | 535599f1634f502644d5024c54edd01297850a07 (diff) |
add new sass stylesheet and refactor layout with semantic classes
Diffstat (limited to 'source/layouts')
-rw-r--r-- | source/layouts/layout.erb | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index b0cba82..3f642ff 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -12,8 +12,7 @@ <!-- Use title if it's in the page YAML frontmatter --> <title><%= current_page.data.title || "sublab" %></title> - <%= stylesheet_link_tag "all", "bootstrap", "bootstrap-theme" %> - + <%= stylesheet_link_tag "base" %> <%#= stylesheet_link_tag "http://localhost:9393/status.css" %> <%= javascript_include_tag "all", "jquery", "bootstrap" %> @@ -21,30 +20,20 @@ <body class="<%= page_classes %>"> - <div class="container"> - - <div class="header container"> - <div class="row"> - <div class="col-md-3"> - <h1>sublab</h1> - </div> - </div> - </div> - - <div class="row"> - <%= partial "navigation" %> - </div> + <!-- header --> + <header> + <h1>sublab</h1> + </header> - <% if (section = current_page.data.section) %> - <%= partial "nav_#{section}" %> - <% end %> + <!-- main navigation --> + <nav> + <%= partial "navigation" %> + </nav> - <div class="row"> - <div class="col-md-9"> - <%= yield %> - </div> - </div> + <!-- content --> + <section id="main"> + <%= yield %> + </section> - </div> <!-- end container --> </body> </html> |