<%- include('partials/header') -%>
  <div class="container">
    <div class="row justify-content-center mt-5">
      <ul class="row list-unstyled">
        <% for(var i=0; i<posts.length; i++) {%>
          <li class="col-6 justify-content-between mt-5">
            <a style="text-decoration: none; "  href="/post/<%= posts[i]._id%>">
              <h3 style="color:  rgb(144, 204, 254);"><%= posts[i].title%> </h3>
            </a>
          </li>
        <% } %>
        </ul>
    </div>
  </div>  
<%- include('partials/footer') -%>