diff --git a/server/src/main.rs b/server/src/main.rs index d9fe16d..4c7f5e3 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -156,6 +156,7 @@ fn main() { } } + // TODO: Add in support for figuring out the index page or allowing one to be set. let site_source_pages: Vec = site_source_pages .iter() .map(|source_page| { @@ -164,9 +165,12 @@ fn main() { let slug = String::from(source_path.file_stem().unwrap().to_str().unwrap()); let content = read_to_string(source_path).unwrap(); + // TODO: Be able to extract the title from the header of the markdown content. + let title = format!("Rookeries :: {}", &slug); + Page { id: Default::default(), - title: format!("Rookeries :: {}", &slug), + title, slug, content, created_at: None,