From 5a9215b152a725110e92f3e1ff7f1ed791ab9c13 Mon Sep 17 00:00:00 2001 From: Alia Lescoulie Date: Mon, 5 Feb 2024 13:53:00 -0800 Subject: [PATCH] add quotes to post block template to fix img links --- sitegen/build.py | 3 +-- sitegen/templates/post_block.html.jinja | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sitegen/build.py b/sitegen/build.py index 912dc5f..f424b53 100644 --- a/sitegen/build.py +++ b/sitegen/build.py @@ -353,8 +353,7 @@ def build_post_blocks(posts: List[PostBuildData], block.render( title=post.data.title, img_link=Path(f"{link_depth * '../'}posts").joinpath( - post.data.directory, - post.data.thumbnail), + post.data.directory) / post.data.thumbnail, link=Path(f"{link_depth * '../'}posts").joinpath( post.data.directory, post.data.path.stem + ".html"), diff --git a/sitegen/templates/post_block.html.jinja b/sitegen/templates/post_block.html.jinja index 90e76a3..62e7cc6 100644 --- a/sitegen/templates/post_block.html.jinja +++ b/sitegen/templates/post_block.html.jinja @@ -1,7 +1,7 @@
- +