From d26f4856c530cf71e108f12143c6d3075677a1b3 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 18 Jan 2024 14:58:32 +0300 Subject: [PATCH] Add RSS feed reminders --- src/routes/blog.rs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/routes/blog.rs b/src/routes/blog.rs index e17030c..a1e31f1 100644 --- a/src/routes/blog.rs +++ b/src/routes/blog.rs @@ -39,8 +39,8 @@ use crate::{ }, }; -static ENTRIES: LazyLock> = - LazyLock::new(|| { +static ENTRIES: LazyLock> = LazyLock::new( + || { IndexMap::from_iter( PAGES .iter() @@ -56,6 +56,12 @@ static ENTRIES: LazyLock> = (tags.join(", ")) } } + + p { + "Also, if you are a dinosaur that enjoys good technogoly, check out my" + a href="/feed" { "RSS Feed" } + "." + } }; Some((name, (metadata, body))) @@ -64,7 +70,8 @@ static ENTRIES: LazyLock> = } }), ) - }); + }, +); pub async fn index_handler() -> Markup { text::create( @@ -72,7 +79,11 @@ pub async fn index_handler() -> Markup { Page::Blog, &html! { h1 { "Blog Articles" } - p { "RSS feed coming soon, probably :)" } + p { + "Are you old? Then you might want to check out the super cool " + a href="/feed" { "RSS Feed" } + "." + } ul { @for (path, (metadata, ..)) in ENTRIES.iter() {