{% extends "base.html" %}

{% block head %}
{{ super() }}
<meta name="description" content="{{ META_DESCRIPTION|striptags }}">
{% endblock %}

{% block title %}
{{ SITENAME }} &mdash; {{ SITESUBTITLE }}
{% endblock %}

{% block page_header %}
All Articles
{% endblock %}

{% block content %}
{% for article in articles_page.object_list %}
<article class="row teaser">
  <header class="col-sm-4 hidden-xs">
    <div class="text-muted" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</div>
    <div><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></div>
    {% if article.authors and ARTICLE_AUTHORS %}
    <div>By
      {% for author in article.authors %}
      <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
      {% endfor %}
    </div>
    {% endif %}
  </header>
  <div class="col-sm-8">
    <h3><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h3>
    {{ article.summary }}
  </div>
</article>
{% if not loop.last %}
<hr>
{% endif %}
{% endfor %}
{% include 'include/pagination.html' %}
{% endblock %}
