From dc050ad927396ac8732f4a382d136fac7c0bba4c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 15 Aug 2022 12:53:16 -0500 Subject: posts: fixed a bug where prologues and epilogues were not being rendered into html --- app/posts/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/posts/models.py') diff --git a/app/posts/models.py b/app/posts/models.py index 781e8fb..6705a83 100644 --- a/app/posts/models.py +++ b/app/posts/models.py @@ -178,9 +178,9 @@ class Post(models.Model): prods = render_products(md) print(self.title) self.body_html = markdown_to_html(prods) - if self.epilogue_html: + if self.epilogue_markdown: self.epilogue_html = markdown_to_html(self.epilogue_markdown) - if self.prologue_html: + if self.prologue_markdown: self.prologue_html = markdown_to_html(self.prologue_markdown) self.has_video = parse_video(self.body_html) if self.point: -- cgit v1.2.3-70-g09d2