build_a_blog: fix var name

This commit is contained in:
Collin Lefeber 2024-06-19 16:50:24 -04:00
parent 53139c0f52
commit 11a9582a4d

View file

@ -387,7 +387,7 @@ def render_post(fpath):
... ...
out = markdown.markdown('# ' + title) + out out = markdown.markdown('# ' + title) + out
logging.info("writing to %s", destpath) logging.info("writing to %s", destpath)
render_template('index.html.tmpl', destpath, html) render_template('index.html.tmpl', destpath, out)
``` ```
After running you should see the each `post/*.html` file where each post file uses the full index template and includes each generated post HTML. After running you should see the each `post/*.html` file where each post file uses the full index template and includes each generated post HTML.