chore: dry up webmentions
This commit is contained in:
parent
561bf48c74
commit
f3faf8feab
10 changed files with 70 additions and 71 deletions
8
src/_includes/partials/webmentions/container.liquid
Normal file
8
src/_includes/partials/webmentions/container.liquid
Normal 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 %}
|
Reference in a new issue