From 3092ce7f5f6e35494a84e0dc0bb05b077a161d4f Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 19 Oct 2024 19:15:14 +0200 Subject: [PATCH] fix: template brok on multiple images --- templates/post.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/post.md b/templates/post.md index 277b614..0d4c87c 100644 --- a/templates/post.md +++ b/templates/post.md @@ -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 %}