Fix the links to the blog posts.

This commit is contained in:
Tom Alexander
2023-12-19 16:46:32 -05:00
parent add267d616
commit 261fe8a1a2
5 changed files with 14 additions and 7 deletions

View File

@@ -120,14 +120,13 @@ pub(crate) struct RenderBlogStreamEntry {
}
render!(RenderBlogStreamEntry, BlogPost, original, render_context, {
// TODO: This link is probably wrong.
let link_to_blog_post = get_web_path(
render_context.config,
render_context.output_directory,
render_context.output_file,
render_context
.output_file
.strip_prefix(render_context.output_directory)?,
.config
.get_relative_path_to_post(&original.id),
)?;
// TODO: Should I guess an index page instead of erroring out?