Removed old comment template
This commit is contained in:
1 parent
15ad89fb13
commit
199a88b965
1 file changed
-88
@@ -1,88 +0,0 @@
|
|||||||
{% comment %}
|
|
||||||
Supports up to 6 levels of nested comments (non-recursive)
|
|
||||||
{% endcomment %}
|
|
||||||
|
|
||||||
{% assign top_comments = site.comments | where: "parent", nil | sort: "date" %}
|
|
||||||
|
|
||||||
{% for comment in top_comments %}
|
|
||||||
<div class="px-0 text-sm border-l-2 border-gray-300 pl-2 mb-4">
|
|
||||||
<div class="mb-1">
|
|
||||||
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Back"><i class="fas fa-arrow-left"></i></a>
|
|
||||||
<small class="ml-2 text-xs text-primary"><a href="#" class="text-text-muted hover:underline">@{{ comment.author }}</a></small>
|
|
||||||
<small class="ml-2 text-xs text-primary">{{ comment.date | date: "%b %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">[-]</a></small>
|
|
||||||
</div>
|
|
||||||
<p>{{ comment.content }}</p>
|
|
||||||
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
|
|
||||||
|
|
||||||
{% assign replies1 = site.comments | where: "parent", comment.slug | sort: "date" %}
|
|
||||||
{% for reply1 in replies1 %}
|
|
||||||
<div class="ml-4 mt-3 border-l-2 border-gray-200 pl-2">
|
|
||||||
<div class="mb-1">
|
|
||||||
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Back"><i class="fas fa-arrow-left"></i></a>
|
|
||||||
<small class="ml-2 text-xs text-primary"><a href="#" class="text-text-muted hover:underline">@{{ reply1.author }}</a></small>
|
|
||||||
<small class="ml-2 text-xs text-primary">{{ reply1.date | date: "%b %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">[-]</a></small>
|
|
||||||
</div>
|
|
||||||
<p>{{ reply1.content }}</p>
|
|
||||||
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
|
|
||||||
|
|
||||||
<!-- Reply Box -->
|
|
||||||
<div class="mt-4">
|
|
||||||
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded text-sm mb-2" placeholder="Reply to this comment..."></textarea>
|
|
||||||
<button class="px-3 py-1 text-xs bg-primary text-white rounded hover:bg-primary-dark">Reply</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% assign replies2 = site.comments | where: "parent", reply1.slug | sort: "date" %}
|
|
||||||
{% for reply2 in replies2 %}
|
|
||||||
<div class="ml-4 mt-3 border-l-2 border-gray-200 pl-2">
|
|
||||||
<div class="mb-1">
|
|
||||||
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Back"><i class="fas fa-arrow-left"></i></a>
|
|
||||||
<small class="ml-2 text-xs text-primary"><a href="#" class="text-text-muted hover:underline">@{{ reply2.author }}</a></small>
|
|
||||||
<small class="ml-2 text-xs text-primary">{{ reply2.date | date: "%b %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">[-]</a></small>
|
|
||||||
</div>
|
|
||||||
<p>{{ reply2.content }}</p>
|
|
||||||
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
|
|
||||||
|
|
||||||
{% assign replies3 = site.comments | where: "parent", reply2.slug | sort: "date" %}
|
|
||||||
{% for reply3 in replies3 %}
|
|
||||||
<div class="ml-4 mt-3 border-l-2 border-gray-200 pl-2">
|
|
||||||
<div class="mb-1">
|
|
||||||
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Back"><i class="fas fa-arrow-left"></i></a>
|
|
||||||
<small class="ml-2 text-xs text-primary"><a href="#" class="text-text-muted hover:underline">@{{ reply3.author }}</a></small>
|
|
||||||
<small class="ml-2 text-xs text-primary">{{ reply3.date | date: "%b %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">[-]</a></small>
|
|
||||||
</div>
|
|
||||||
<p>{{ reply3.content }}</p>
|
|
||||||
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
|
|
||||||
|
|
||||||
{% assign replies4 = site.comments | where: "parent", reply3.slug | sort: "date" %}
|
|
||||||
{% for reply4 in replies4 %}
|
|
||||||
<div class="ml-4 mt-3 border-l-2 border-gray-200 pl-2">
|
|
||||||
<div class="mb-1">
|
|
||||||
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Back"><i class="fas fa-arrow-left"></i></a>
|
|
||||||
<small class="ml-2 text-xs text-primary"><a href="#" class="text-text-muted hover:underline">@{{ reply4.author }}</a></small>
|
|
||||||
<small class="ml-2 text-xs text-primary">{{ reply4.date | date: "%b %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">[-]</a></small>
|
|
||||||
</div>
|
|
||||||
<p>{{ reply4.content }}</p>
|
|
||||||
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
|
|
||||||
|
|
||||||
{% assign replies5 = site.comments | where: "parent", reply4.slug | sort: "date" %}
|
|
||||||
{% for reply5 in replies5 %}
|
|
||||||
<div class="ml-4 mt-3 border-l-2 border-gray-200 pl-2">
|
|
||||||
<div class="mb-1">
|
|
||||||
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Back"><i class="fas fa-arrow-left"></i></a>
|
|
||||||
<small class="ml-2 text-xs text-primary"><a href="#" class="text-text-muted hover:underline">@{{ reply5.author }}</a></small>
|
|
||||||
<small class="ml-2 text-xs text-primary">{{ reply5.date | date: "%b %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">[-]</a></small>
|
|
||||||
</div>
|
|
||||||
<p>{{ reply5.content }}</p>
|
|
||||||
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
Reference in new issue
Block a user