fix: template brok on multiple images
This commit is contained in:
parent
b2c44e9003
commit
3092ce7f5f
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue