fix: replace template literal in x-text to avoid Nunjucks triple-brace parse error
Build & Deploy / build-and-deploy (push) Successful in 2m0s

This commit is contained in:
svemagie
2026-04-20 17:33:00 +02:00
parent 9c8fb2a341
commit 018a93b5b9
+3 -2
View File
@@ -128,9 +128,10 @@
{% endfor %} {% endfor %}
{% if filtered_replies.length or bskySyndUrl %} {% if filtered_replies.length or bskySyndUrl %}
<div class="webmention-replies"{% if bskySyndUrl %} x-data="bskyThread('{{ bskySyndUrl }}')"{% endif %}> <div class="webmention-replies"{% if bskySyndUrl %} x-data="bskyThread('{{ bskySyndUrl }}')"{% endif %}>
{% set wmRepliesCount = filtered_replies.length %}
<h3 class="text-sm font-semibold text-surface-600 dark:text-surface-400 uppercase tracking-wide mb-4" <h3 class="text-sm font-semibold text-surface-600 dark:text-surface-400 uppercase tracking-wide mb-4"
{% if bskySyndUrl %}x-text="`${{{ filtered_replies.length }} + replies.length} Repl${({{ filtered_replies.length }} + replies.length) !== 1 ? 'ies' : 'y'}`"{% endif %}> {% if bskySyndUrl %}x-text="({{ wmRepliesCount }} + replies.length) + ' Repl' + (({{ wmRepliesCount }} + replies.length !== 1) ? 'ies' : 'y')"{% endif %}>
{% if not bskySyndUrl %}{{ filtered_replies.length }} Repl{% if filtered_replies.length != 1 %}ies{% else %}y{% endif %}{% endif %} {% if not bskySyndUrl %}{{ wmRepliesCount }} Repl{% if wmRepliesCount != 1 %}ies{% else %}y{% endif %}{% endif %}
</h3> </h3>
<ul class="space-y-4"> <ul class="space-y-4">
{% for reply in filtered_replies %} {% for reply in filtered_replies %}