url = "/latest"
layout = "default"
title = "Latest"
is_hidden = 0

[listPosts allPosts]
includeSubcategories = 0
postsPerPage = 6
sortOrder = "published_at desc"

[viewBag]
localeUrl[en] = "/latest"
localeUrl[de] = "/neueste"
localeTitle[de] = "Neueste"

[alternateHrefLangElements]
==

{% put head %}
    {% component 'alternateHrefLangElements' %}
{% endput %}

{% put jumbotron %}
<div class="jumbotron">
    <div class="container">
        <div class="row">
            <div class="col-12 col-md-6">
                {% if this.theme.images.banner.default %}
                    {% partial "common/helpers/image"
                        image = this.theme.images.banner.default
                        responsive = this.theme.images.banner.responsive
                        alt = this.theme.images.banner.alt
                        class = this.theme.images.banner.class
                    %}
                {% else %}
                    <picture>
                        <img src="{{ "assets/images/home-banner.jpg" | theme }}" alt="A placeholder">
                    </picture>
                {% endif %}
            </div>
                <div class="col-12 col-md-6">
                    <h1 class="display-3">{{ 'headings.latest-posts' | _ }}</h1>
                    <p>{{ 'general.paginated-posts-list' | _ }}</p>
            </div>
        </div>
    </div>
</div>
{% endput %}

{% component 'allPosts' %}
