diff --git a/src/_includes/layouts/post.njk b/src/_includes/layouts/post.njk index 6983693..721b87c 100644 --- a/src/_includes/layouts/post.njk +++ b/src/_includes/layouts/post.njk @@ -6,7 +6,7 @@

{{ title }}

- PubliƩ le {{ date}}{%if author %} | {{ author }}{% endif %} + PubliƩ le {{ date | dateFilter }}{%if author %} | {{ author }}{% endif %}
{% if illustration %} illustration de l'article diff --git a/src/_includes/partials/components/posts-list.njk b/src/_includes/partials/components/posts-list.njk index 7e8e613..69574c7 100644 --- a/src/_includes/partials/components/posts-list.njk +++ b/src/_includes/partials/components/posts-list.njk @@ -8,6 +8,9 @@

+ {% if item.data.time %} + + {% endif %}

{% endif %} diff --git a/src/scss/components/_posts-list.scss b/src/scss/components/_posts-list.scss index 14b7c7c..ac62663 100644 --- a/src/scss/components/_posts-list.scss +++ b/src/scss/components/_posts-list.scss @@ -48,6 +48,11 @@ border-radius: 0 0 1rem 1rem; padding: 1rem 1.5rem; margin-top: auto; + display: flex; + + time + time { + margin-left: auto; + } } }