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:
parent
b12a8f377e
commit
d26f4856c5
1 changed files with 15 additions and 4 deletions
|
@ -39,8 +39,8 @@ use crate::{
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> =
|
static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> = LazyLock::new(
|
||||||
LazyLock::new(|| {
|
|| {
|
||||||
IndexMap::from_iter(
|
IndexMap::from_iter(
|
||||||
PAGES
|
PAGES
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -56,6 +56,12 @@ static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> =
|
||||||
(tags.join(", "))
|
(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)))
|
Some((name, (metadata, body)))
|
||||||
|
@ -64,7 +70,8 @@ static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> =
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
pub async fn index_handler() -> Markup {
|
pub async fn index_handler() -> Markup {
|
||||||
text::create(
|
text::create(
|
||||||
|
@ -72,7 +79,11 @@ pub async fn index_handler() -> Markup {
|
||||||
Page::Blog,
|
Page::Blog,
|
||||||
&html! {
|
&html! {
|
||||||
h1 { "Blog Articles" }
|
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 {
|
ul {
|
||||||
@for (path, (metadata, ..)) in ENTRIES.iter() {
|
@for (path, (metadata, ..)) in ENTRIES.iter() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue