diff --git a/jssg/models.py b/jssg/models.py index 26f756b..52d992c 100644 --- a/jssg/models.py +++ b/jssg/models.py @@ -90,7 +90,7 @@ def content(self) -> str: if "template_engine" in self.metadata.keys() and self.metadata["template_engine"] == "django" : - return Template(self.content).render( + return Template(self.body).render( Context( { "posts": sorted( @@ -101,7 +101,7 @@ def content(self) -> str: ) ) else : - return engines["jinja2"].from_string(self.content).render( + return engines["jinja2"].from_string(self.body).render( { "posts": sorted( Post.load_glob(), key=lambda p: p.timestamp, reverse=True