order projects
Some checks failed
test / cargo test (push) Failing after 57s

This commit is contained in:
2024-09-27 13:34:07 +02:00
parent 85c98fac56
commit 4e367d73a0
20 changed files with 13 additions and 9 deletions

View File

@ -18,6 +18,7 @@ pub struct ProjectListTemplate {
pub async fn render_projects_list() -> Result<ProjectListTemplate, StatusCode> {
let mut project_list = get_post_list::<ProjectMetadata>("../_projects").await?;
project_list.sort_by_key(|post| post.slug.to_string());
project_list.retain(|project| project.metadata.displayed);
project_list.reverse();