<!DOCTYPE html>
<html>
  <head>
    <title>Layout!</title>
    <link rel='stylesheet' href='/stylesheets/style.css'>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css">
  </head>
  <body class="{{thisPage}}">
    <div class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">Awesome Blog!</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            {{#isLogged}}
            <li><a href="/post/create">New Post</a></li>
            {{/isLogged}}
            <li><a href="/search">Search</a></li>
            <li><a href="/signup">Sign up</a></li>
            <li><a href="/signin">Sign in</a></li>
            {{#isLogged}}
            <li><a href="/changepassword">Change Password</a></li>
            {{/isLogged}}
          </ul>
        </div>
      </div>
    </div>
    <div class="content">
    {{{ yield }}}
    </div>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
  </body>
</html>
