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 %}