index.ejs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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">Latest games</h2>
  7. </div>
  8. </div>
  9. <div class="row">
  10. <% site.posts.forEach(content => { %>
  11. <% if(content.content_type == "game") { %>
  12. <div class="col-12 col-sm-6" style="margin-bottom: 20px;">
  13. <div class="card card-dark hoverable">
  14. <a href="<%- content.path %>">
  15. <img src="/games/<%- content.id %>/main-capsule.png" alt="..."
  16. style="width: 100%;">
  17. </a>
  18. </div>
  19. </div>
  20. <% } %>
  21. <% }); %>
  22. </div>
  23. <div class="row">
  24. <div class="col-12">
  25. <h2 class="group-header">Company News</h2>
  26. </div>
  27. </div>
  28. <div class="row">
  29. <% var pages = order_pages(site.posts); %>
  30. <% var count = 0 %>
  31. <% pages.forEach(content => { %>
  32. <% if(content.content_type == "post") { %>
  33. <% count += 1 %>
  34. <% if(count <= 3) { %>
  35. <div class="col-12 col-sm-4" style="margin-bottom: 20px;">
  36. <div class="card card-dark hoverable">
  37. <div class="card-body">
  38. <h5 class="card-title">
  39. <a href="<%- content.path %>"><%- content.title %></a>
  40. </h5>
  41. <p class="card-text"><%- content.description %></p>
  42. </div>
  43. <p class="card-date"><small><%- date(content.date, 'M/D/YYYY') %></small></p>
  44. </div>
  45. </div>
  46. <% } %>
  47. <% } %>
  48. <% }); %>
  49. </div>
  50. </div>
  51. <%- partial('_partial/footer') %>
  52. </main>