Implement a flawed version of RenderBlogStreamEntry::new.

There are some shortcomings in this implementation listed in the comments, but this is the general structure.
This commit is contained in:
Tom Alexander
2023-12-19 10:59:34 -05:00
parent 53cd55932b
commit 6511115b95
2 changed files with 29 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ impl BlogPost {
}
/// Get the blog post page for index.org
fn get_index_page(&self) -> Option<&BlogPostPage> {
pub(crate) fn get_index_page(&self) -> Option<&BlogPostPage> {
self.pages
.iter()
.find(|page| page.path == Path::new("index.org"))