old-website/templates/views/articles.html
2023-07-21 13:30:18 +01:00

11 lines
321 B
HTML

{% extends 'base.html' %}
{% block content %}
<h1>Articles</h1>
{% for article in articles %}
<a href="{% url 'articles:detail' slug=article.slug %}" class="article">
<h2>{{ article.title }}</h2>
<p>{{ article.date|timesince }} ago</p>
</a>
{% endfor %}
{% endblock %}