diff --git a/builder/src/build/statics.rs b/builder/src/build/statics.rs index f7246ce..52ebecf 100644 --- a/builder/src/build/statics.rs +++ b/builder/src/build/statics.rs @@ -1,6 +1,6 @@ //! Root index.html and some other static stuff -use std::path::Path; +use std::{cmp::Reverse, path::Path}; use color_eyre::{eyre::WrapErr, Result}; @@ -14,7 +14,13 @@ pub fn build( ) -> Result<()> { let mut context = tera::Context::new(); - context.insert("talks", &config.talks); + let mut talks = config + .talks + .iter() + .filter(|talk| talk.hidden != Some(true)) + .collect::>(); + talks.sort_by_cached_key(|talk| Reverse(talk.date.clone())); + context.insert("talks", &talks); utils::copy_fn(&statics.join("root"), dist, |content, ext, _opts| { if ext.is_some_and(|ext| matches!(ext, "html" | "css")) { diff --git a/builder/src/main.rs b/builder/src/main.rs index af12399..8cfcbb3 100644 --- a/builder/src/main.rs +++ b/builder/src/main.rs @@ -38,6 +38,7 @@ struct Talk { location: String, #[serde(skip_deserializing)] dir_name: String, + hidden: Option, } impl Talk { diff --git a/config.toml b/config.toml index 6413675..5659b92 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,5 @@ [slides] talks = [ { name = "How to contribute to the Rust project", location = "Rust Zürisee", date = "2024-01-17" }, + { name = "How Rust compiles", location = "EuroRust Paris 2025", date = "2025-10-10", hidden = true }, ] diff --git a/slides/2025-10-10-how-rust-compiles/index.html b/slides/2025-10-10-how-rust-compiles/index.html index 13c6022..0a5f0c0 100644 --- a/slides/2025-10-10-how-rust-compiles/index.html +++ b/slides/2025-10-10-how-rust-compiles/index.html @@ -7,7 +7,7 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> - how rust compiles + how Rust compiles @@ -34,7 +34,7 @@
- the rust compilation model has surprising effects + the Rust compilation model has surprising effects