diff --git a/src/articles/static/public.css b/src/articles/static/public.css index ce3331c..c12cc89 100644 --- a/src/articles/static/public.css +++ b/src/articles/static/public.css @@ -49,3 +49,14 @@ a.tag:not(:first-of-type):before { #metadata { margin-bottom: 1.5rem; } + +#articles-list time { + display: inline-block; + min-width: 11ex; +} + +@media (max-width: 720px) { + #articles-list time { + display: block; + } +} diff --git a/src/articles/templates/articles/article_list.html b/src/articles/templates/articles/article_list.html index 13b5abd..2fa30da 100644 --- a/src/articles/templates/articles/article_list.html +++ b/src/articles/templates/articles/article_list.html @@ -15,12 +15,12 @@ {% block title %}{% if view.html_title %}{{ view.html_title }} | {% endif %}{% endblock %} {% block content %} -
+

{% block main_title %}{{ view.main_title }}{% endblock %}

{% block search_bar %}{% endblock %} {% for article in articles %}

- {% include "articles/snippets/datetime.html" %}
+ {% include "articles/snippets/datetime.html" %} {{ article.title }}

{% empty %}