<div class="Sidebar js-Sidebar">
  <ul class="main-menu">
    <%- partial('partials/main_menu') %>
  </ul>
  <div class="list">
    <h2>
      <%- type === 'api' ? 'API' : (type.charAt(0).toUpperCase() + type.slice(1)) %>
    </h2>
    <ul class="menu-root">
      <% site.pages.find({type: type}).sort('order').each(function (p) { %>
        <li>
          <a href="/<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %><%- p.is_new ? ' new' : '' %>"><%- p.title %></a>
        </li>
      <% }) %>
    </ul>
    <%- partial('partials/social') %>
  </div>
</div>
