diff options
| author | Fuwn <[email protected]> | 2022-04-14 18:48:19 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-14 18:48:19 -0700 |
| commit | f60823c3f593bfbf4a00d16e794d4e47d82da9c2 (patch) | |
| tree | 98c77ab90c19ac18818eb1a6bfba5c163797eb9b /src/modules.rs | |
| parent | feat: sitemap (diff) | |
| download | locus-f60823c3f593bfbf4a00d16e794d4e47d82da9c2.tar.xz locus-f60823c3f593bfbf4a00d16e794d4e47d82da9c2.zip | |
feat: descriptions for sitemap
Diffstat (limited to 'src/modules.rs')
| -rw-r--r-- | src/modules.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules.rs b/src/modules.rs index 8189fb3..7e8a5bb 100644 --- a/src/modules.rs +++ b/src/modules.rs @@ -106,6 +106,7 @@ pub fn multi_blog(router: &mut windmark::Router) { track_mount( router, "/blog", + "Fuwn's blogs", Box::new(move |context| { success!( &format!( @@ -135,10 +136,12 @@ pub fn multi_blog(router: &mut windmark::Router) { let fixed_blog_name = blog.replace(' ', "_").to_lowercase(); let entries_clone = entries.clone(); let fixed_blog_name_clone = fixed_blog_name.clone(); + let blog_clone = blog.clone(); track_mount( router, &format!("/blog/{}", fixed_blog_name), + &format!("{} ― One of Fuwn's blogs", &blog), Box::new(move |context| { success!( &format!( @@ -173,6 +176,10 @@ pub fn multi_blog(router: &mut windmark::Router) { track_mount( router, &format!("/blog/{}/{}", fixed_blog_name, title.to_lowercase()), + &format!( + "{}, {} ― An entry to one of Fuwn's blogs", + title, blog_clone + ), Box::new(move |context| success!(contents, context)), ); } |