From d2706dbc74c41a34642e225dca53541405922339 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Sat, 25 Feb 2023 21:27:26 +0000 Subject: [PATCH] Fix post reply formatting --- src/_includes/post.njk | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/_includes/post.njk b/src/_includes/post.njk index ba541ab..dce32a5 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -23,7 +23,7 @@ eleventyComputed:
{% for like in post.comments.like %} - + {{ like.author.name }} {% endfor %} @@ -36,7 +36,7 @@ eleventyComputed:
{% for like in post.comments.repost %} - + {{ like.author.name }} {% endfor %} @@ -48,17 +48,17 @@ eleventyComputed:

Replies

-
    - {% for reply in post.comments.reply %} +
      + {% for reply in post.comments.reply | reverse %} -
    1. - +
    2. + {{ reply.author.name }} -
      +
      {% set date = reply.date | parseDate %}

      {{ reply.author.name }} on {{ date | dateDisplay }} at {{ date | timeDisplay }}

      - Original comment + Original comment

      {{ reply.content | safe }}