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 -}} {{- msg.content -}}
{% else %} {% else %}
{% for path in msg.attachments %} {% for path in msg.attachments %}
{{ "{{" }} figure(src="./{{ path }}" {% if loop.last -%} {{ "{{" }} figure(src="./{{ path }}", caption="
, caption="{{ msg.content }}" {%- if loop.last -%}
{{ msg.content }}
{%- endif -%} {%- endif -%}
" ){{ "}}" }}
{%- endfor -%} {%- endfor -%}
) {{ "}}" }}
{%- endif %} {%- endif %}
{% endfor %} {% endfor %}