signal-to-blog/templates/post.md

26 lines
433 B
Markdown
Raw Permalink Normal View History

2024-09-06 18:04:51 +02:00
+++
2024-10-19 19:30:16 +02:00
title = "{{title}} ({{ date_title }})"
2024-09-06 18:04:51 +02:00
date = {{ date }}
draft = false
[taxonomies]
2024-11-10 17:47:58 +01:00
tags = ["Signal to blog", "Journal"]
2024-09-06 18:04:51 +02:00
+++
{% for msg in messages %}
# {{ msg.time }}
{% if msg.attachments.len() == 0 %}
{{- msg.content -}}
{% else %}
{% for path in msg.attachments %}
2024-10-19 19:15:14 +02:00
{{ "{{" }} figure(src="./{{ path }}", caption="
{%- if loop.last -%}
{{ msg.content }}
2024-09-06 18:04:51 +02:00
{%- endif -%}
2024-10-19 19:15:14 +02:00
" ){{ "}}" }}
2024-09-06 18:04:51 +02:00
{%- endfor -%}
{%- endif %}
{% endfor %}