never ever ever leave a {% trans %}{% endtrans %} block empty, or it will break like half the languages for some mysterious reason

This commit is contained in:
idk
2023-05-04 04:25:47 +00:00
parent e0e6a2fa76
commit 84d35a67c7
5 changed files with 6 additions and 4 deletions

View File

@ -140,6 +140,8 @@ def render_blog_post(slug):
with codecs.open(path, encoding='utf-8') as fd:
content = fd.read()
print(content)
# render the post with Jinja2 to handle URLs etc.
rendered_content = render_template_string(content)