{% extends "base.html" %} {% block content %}
all {% for cat in categories %} {{ cat.category }} ({{ cat.count }}) {% endfor %}
    {% for article in articles %}
  1. {{ loop.index }}.
    {% if article.url %} {{ article.title }} ({{ article.url.split('/')[2] }}) {% else %} {{ article.title }} {% endif %} {{ article.category }}
    {{ article.votes }} point{{ 's' if article.votes != 1 else '' }} | {{ article.comment_count or 0 }} comment{{ 's' if (article.comment_count or 0) != 1 else '' }}
  2. {% else %}
  3. No articles yet. Submit the first one!
  4. {% endfor %}
{% endblock %}