fix: template brok on multiple images

This commit is contained in:
Patrick 2024-10-19 19:15:14 +02:00
parent b2c44e9003
commit 3092ce7f5f
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -15,10 +15,11 @@ tags = ["Signal to blog"]
{{- msg.content -}}
{% else %}
{% for path in msg.attachments %}
{{ "{{" }} figure(src="./{{ path }}" {% if loop.last -%}
, caption="{{ msg.content }}"
{{ "{{" }} figure(src="./{{ path }}", caption="
{%- if loop.last -%}
{{ msg.content }}
{%- endif -%}
" ){{ "}}" }}
{%- endfor -%}
) {{ "}}" }}
{%- endif %}
{% endfor %}