use super::blog::POSTS; pub fn module(router: &mut windmark::router::Router) { crate::route::track_mount( router, "/", "This Gemini capsule's homepage", move |context| { crate::response::success( &format!( r"# Fuwn[.net] I enjoy writing for archaic systems in dated languages and with artificially imposed constraints, all while aiming for peak performance and minimal design. => https://github.com/Fuwn Projects (GitHub) ## Recent Posts {} ## Gemini I write a lot of software and tooling for the Gemini protocol, the backbone of this site. You can learn more over at GemRest. => https://github.com/gemrest GemRest (GitHub) => /blog/technology/gemini More on Gemini ## Exploring Don't know where to start? Check out The Directory or test your luck! => /directory The Directory => /random I'm Feeling Lucky", { (*POSTS).lock().map_or_else( |_| "...".to_string(), |global_posts| { global_posts .iter() .take(3) .map(|post| format!("=> {} {}", post.link(), post.title())) .collect::>() .join("\n") }, ) } ), &context, ) }, ); }