Skip to content

Commit

Permalink
fix project page link errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ALescoulie committed Feb 5, 2024
1 parent 0e687a7 commit 6f2fb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sitegen/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ def build_post_blocks(posts: List[PostBuildData],
post_blocks.append(
block.render(
title=post.data.title,
img_link=Path("posts").joinpath(
img_link=Path(f"{link_depth * '../'}posts").joinpath(
post.data.directory,
post.data.thumbnail),
link=Path("posts").joinpath(
link=Path(f"{link_depth * '../'}posts").joinpath(
post.data.directory,
post.data.path.stem + ".html"),
date=render_date_string(post.data.date),
Expand Down

0 comments on commit 6f2fb41

Please sign in to comment.