<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">Lastest 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); %>
            <% pages.forEach(content => { %>
                <% if(content.content_type == "post") { %>
                    <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>