change directory paths
Some checks failed
test / cargo test (push) Failing after 1m40s

This commit is contained in:
2024-09-30 21:29:25 +02:00
parent 1ce8ccfdd5
commit da78b80587
9 changed files with 13 additions and 23 deletions

View File

@ -16,7 +16,7 @@ pub struct ProjectListTemplate {
}
pub async fn render_projects_list() -> Result<ProjectListTemplate, StatusCode> {
let mut project_list = get_post_list::<ProjectMetadata>("../_projects").await?;
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);