12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <main role="main" class="bg-dark2" >
- <%- partial('_partial/logo', { created_by : false }) %>
- <div class="container">
- <div class="row">
- <div class="col-12">
- <h2 class="group-header">Latest games</h2>
- </div>
- </div>
- <div class="row">
- <% site.posts.forEach(content => { %>
- <% if(content.content_type == "game") { %>
- <div class="col-12 col-sm-6" style="margin-bottom: 20px;">
- <div class="card card-dark hoverable">
- <a href="<%- content.path %>">
- <img src="/games/<%- content.id %>/main-capsule.png" alt="..."
- style="width: 100%;">
- </a>
- </div>
- </div>
- <% } %>
- <% }); %>
- </div>
- <div class="row">
- <div class="col-12">
- <h2 class="group-header">Company News</h2>
- </div>
- </div>
- <div class="row">
- <% var pages = order_pages(site.posts); %>
- <% var count = 0 %>
- <% pages.forEach(content => { %>
- <% if(content.content_type == "post") { %>
- <% count += 1 %>
- <% if(count <= 3) { %>
- <div class="col-12 col-sm-4" style="margin-bottom: 20px;">
- <div class="card card-dark hoverable">
- <div class="card-body">
- <h5 class="card-title">
- <a href="<%- content.path %>"><%- content.title %></a>
- </h5>
- <p class="card-text"><%- content.description %></p>
- </div>
- <p class="card-date"><small><%- date(content.date, 'M/D/YYYY') %></small></p>
- </div>
- </div>
- <% } %>
- <% } %>
- <% }); %>
- </div>
- </div>
- <%- partial('_partial/footer') %>
- </main>
|