index.ejs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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">Lastest 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. <% pages.forEach(content => { %>
  31. <% if(content.content_type == "post") { %>
  32. <div class="col-12 col-sm-4" style="margin-bottom: 20px;">
  33. <div class="card card-dark hoverable">
  34. <div class="card-body">
  35. <h5 class="card-title">
  36. <a href="<%- content.path %>"><%- content.title %></a>
  37. </h5>
  38. <p class="card-text"><%- content.description %></p>
  39. </div>
  40. <p class="card-date"><small><%- date(content.date, 'M/D/YYYY') %></small></p>
  41. </div>
  42. </div>
  43. <% } %>
  44. <% }); %>
  45. </div>
  46. </div>
  47. <%- partial('_partial/footer') %>
  48. </main>