{% extends "base" %}
{% block title %}
{% if has_previous %}
<a class="secondary" href="/authors/{{ backward_cursor }}/DESC">← back</a> 
{% endif %} 
{% if has_previous and has_more %}|{% endif%}

{% if has_more %}
<a class="secondary" href="/authors/{{ forward_cursor }}/ASC">more →</a>
{% endif %}
{% endblock title %}

{% block content %}
    <div class="grid-container">
    {% for author in authors %}
      <a class="contrast" href="/authors/{{ author.id }}">
        <article>{{ author.name }}</article>
      </a>
    {% endfor %}
    </div>
{% endblock content %}