<div class="article container">

    <h1>{{ article.title }}</h1>

    {% render 'image', image: article.image, class: 'article-image' %}

    <div class="article-data-line">
        <span class="article-date-and-author">
            {%- assign date_format = 'general.article.article_published_date_format_day_month_year' | t -%}
            {% if article.author %}{{ article.author }}{% endif %}, {{ article.published_at | date: date_format }}
        </span>
        -
        <span class="article-minutes">
            {% assign words = article.content | strip_html | strip_newlines | split: ' ' | size %}

            {% if words < 360 %}
                {{ 'general.article.one_minute' | t }}
            {% else %}
                {{ words | divided_by: 180 }}{{ 'general.article.more_minutes' | t }}
            {% endif %}
        </span>
    </div>

    <div class="article-content">{{ article.content }}</div>

</div>

{% schema %}
{
    "name": "t:sections.section-blog-article.name"
}
{% endschema %}