Partially fix replies
This commit is contained in:
1 parent
640179587c
commit
8b6a712a62
2 files changed
+17
-12
No files matched your search
@@ -30,6 +30,7 @@ eleventyComputed:
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if post.comments.repost | length %}
|
||||
<div class="stack-xs">
|
||||
<h3 class="block w-full">Reposts</h3>
|
||||
@@ -44,20 +45,18 @@ eleventyComputed:
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if post.comments.reply | length %}
|
||||
{% if post.comments.comment | length %}
|
||||
<div class="stack-xs">
|
||||
<h3 class="block w-full">Replies</h3>
|
||||
|
||||
<ol class="stack-md">
|
||||
{% for reply in post.comments.reply | reverse %}
|
||||
{% for reply in post.comments.comment | reverse %}
|
||||
|
||||
<li class="sidebar items-center">
|
||||
<a href="{{ like.author.url }}" class="self-start" rel="noreferrer" target="_blank">
|
||||
<img src="{{ reply.author.avatars["96"] }}" alt="{{ reply.author.name }}" class="max-w-[4rem] box" />
|
||||
</a>
|
||||
|
||||
<div class="stack-2xs basis-[50ch]">
|
||||
{% set date = reply.date | parseDate %}
|
||||
<h4>{{ reply.author.name }} <span class="font-normal">on</span> {{ date | dateDisplay }} <span class="font-normal">at</span> {{ date | timeDisplay }}</h4>
|
||||
<h4><a href="{{ reply.author.url }}" rel="noreferrer" target="_blank">{{ reply.author.name }}</a> <span class="font-normal">on</span> {{ date | dateDisplay }} <span class="font-normal">at</span> {{ date | timeDisplay }}</h4>
|
||||
<a href="{{ reply.canonical }}" rel="noreferrer" target="_blank">Original comment</a>
|
||||
<p>{{ reply.content | safe }}</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user