1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Add RSS feed reminders

This commit is contained in:
RGBCube 2024-01-18 14:58:32 +03:00
parent b12a8f377e
commit d26f4856c5
No known key found for this signature in database

View file

@ -39,8 +39,8 @@ use crate::{
},
};
static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> =
LazyLock::new(|| {
static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> = LazyLock::new(
|| {
IndexMap::from_iter(
PAGES
.iter()
@ -56,6 +56,12 @@ static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> =
(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<IndexMap<&'static str, (&'static Metadata, Markup)>> =
}
}),
)
});
},
);
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() {