summaryrefslogtreecommitdiff
path: root/source/layouts/layout.erb
blob: b0cba8266c871d96de7fdb2afc2047bbb15222dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">

    <!-- Always force latest IE rendering engine or request Chrome Frame -->
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">

    <!-- For proper display on mobile -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 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 "http://localhost:9393/status.css" %>

    <%= javascript_include_tag  "all", "jquery", "bootstrap" %>
  </head>

  <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>

      <% if (section = current_page.data.section) %>
          <%= partial "nav_#{section}" %>
      <% end %>

      <div class="row">
        <div class="col-md-9">
          <%= yield %>
        </div>
      </div>

    </div> <!-- end container -->
  </body>
</html>