blog.ejs 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <main role="main" class="bg-dark2" >
  2. <%- partial('_partial/logo', { created_by : false }) %>
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-12">
  6. <h2 class="group-header">Blog</h2>
  7. </div>
  8. </div>
  9. <div class="row">
  10. <% var pages = order_pages(site.posts); %>
  11. <% pages.forEach(content => { %>
  12. <% if(content.content_type == "post") { %>
  13. <div class="col-4">
  14. <div class="card card-dark hoverable">
  15. <div class="card-body">
  16. <h5 class="card-title">
  17. <a href="<%- content.path %>"><%- content.title %></a>
  18. </h5>
  19. <p class="card-text"><%- content.description %></p>
  20. </div>
  21. <p class="card-date"><small><%- date(content.date, 'M/D/YYYY') %></small></p>
  22. </div>
  23. </div>
  24. <% } %>
  25. <% }); %>
  26. </div>
  27. </div>
  28. <%- partial('_partial/about') %>
  29. <%- partial('_partial/newsletter') %>
  30. <%- partial('_partial/links') %>
  31. </main>