Skip to content

Commit

Permalink
Update webmentions block
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFoDy committed Jan 27, 2024
1 parent 840c799 commit b584870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/includes/webmentions.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{%- set mentions = webmentions.children | webmentionsByUrl(page.url) -%}
<section class="webmentions">
<h2>Webmentions <a href="https://indieweb.org/Webmention" target="_blank" aria-label="What is it?">[?]</a><span class="webmentions__likes">, <span aria-label="Likes count">❤︎</span> {{ (webmentions.children | likesAndRepostsByUrl(page.url)).likes }}</span></h2>
<h2>Webmentions <a href="https://indieweb.org/Webmention" target="_blank" aria-label="What is it?">[?]</a> <small class="webmentions__likes">(likes: {{ (webmentions.children | likesAndRepostsByUrl(page.url)).likes }},
reposts: {{ (webmentions.children | likesAndRepostsByUrl(page.url)).reposts }})</small></h2>
{% if mentions | length %}
<ol class="webmentions__list">
{% for webmention in mentions %}
Expand Down

0 comments on commit b584870

Please sign in to comment.