Skip to content

Commit

Permalink
add quotes to post block template to fix img links
Browse files Browse the repository at this point in the history
  • Loading branch information
ALescoulie committed Feb 5, 2024
1 parent 14206a1 commit 5a9215b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sitegen/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion sitegen/templates/post_block.html.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="blog_post_item">

<div class="blog_post_item_img">
<img src={{ img_link }}/>
<img src="{{ img_link }}"/>
</div>

<div class="blog_post_item_text">
Expand Down

0 comments on commit 5a9215b

Please sign in to comment.