Fix the links to the blog posts.
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user