{% extends "base.njk" %}

{% block background %}
    {% if assets.background %}
        <div class="background">{{assets.background | safe}}</div>
    {% endif %}
{% endblock %}

{% block content %}

    <section class="section-latest">
        <h2 class="section-title">Latest articles</h2>

    </section>

    <section class="section-blog">
        <h2 class="section-title">Latest from the blog</h2>

        {% for article in collections.blog %}

            <article class="posts">
                <h3><a href="{{article.url}}">{{article.data.title}}</a></h3>
                {% if article.data.intro %}
                {{article.data.intro | markdownify | safe }}
                {% endif %}

                {# {{article.templateContent | markdownify | safe}} #}
            </article>
        {% endfor %}

    </section>

{% endblock %}