chore: dry up webmentions

This commit is contained in:
Cory Dransfeldt 2023-08-14 09:50:29 -07:00
parent 561bf48c74
commit f3faf8feab
No known key found for this signature in database
10 changed files with 70 additions and 71 deletions

View file

@ -0,0 +1,8 @@
{% if webmentions %}
<div class="border-t border-gray-200 mt-12 pt-14 dark:border-gray-700">
{% assign mentions = webmentions.mentions | webmentionsByUrl: page.url %}
{% render "partials/webmentions/interaction.liquid", mentions: mentions, type: 'repost-of' %}
{% render "partials/webmentions/interaction.liquid", mentions: mentions, type: 'like-of' %}
{% render "partials/webmentions/comments.liquid", mentions: mentions %}
</div>
{% endif %}