mirror of
https://github.com/RGBCube/Site
synced 2025-07-31 13:07:46 +00:00
Sort more efficiently
This commit is contained in:
parent
5d2c5197cd
commit
81f4a96d53
1 changed files with 1 additions and 2 deletions
|
@ -25,8 +25,7 @@ static ENTRIES: LazyLock<IndexMap<&'static str, (&'static Metadata, Markup)>> =
|
|||
IndexMap::from_iter(
|
||||
PAGES
|
||||
.iter()
|
||||
.sorted_by_key(|(_, value)| value.0.date)
|
||||
.rev()
|
||||
.sorted_by(|(_, a), (_, b)| b.0.date.cmp(&a.0.date))
|
||||
.filter_map(|(path, (metadata, body))| {
|
||||
if let Some(name) = path.strip_prefix("blog/") {
|
||||
let body = html! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue