~linuxgoose/bocpress

4f522586f42d78c476acc3415de577d0191a67cd — Jordan Robinson 2 months ago 9982693
update markdown export to include the tag list
1 files changed, 3 insertions(+), 0 deletions(-)

M main/views/export.py
M main/views/export.py => main/views/export.py +3 -0
@@ 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())))