From 4f522586f42d78c476acc3415de577d0191a67cd Mon Sep 17 00:00:00 2001 From: Jordan Robinson Date: Wed, 24 Sep 2025 23:11:35 +0100 Subject: [PATCH] update markdown export to include the tag list --- main/views/export.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/views/export.py b/main/views/export.py index 9523fac996d60f23523bd72643028f06faae2f79..4e82e3c364e5a92396f718fa3071bbd6d064922d 100644 --- a/main/views/export.py +++ b/main/views/export.py @@ -50,6 +50,9 @@ def export_markdown(request): title = p.slug + ".md" body = f"# {p.title}\n\n" body += f"> Published on {pub_date.strftime('%b %-d, %Y')}\n\n" + if p.tags: + tags_line = ", ".join(p.tag_list) + body += f"> Tags: {tags_line}\n\n" body += f"{p.body}\n" export_posts.append((title, io.BytesIO(body.encode())))