1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-31 13:07:46 +00:00

Fix splitn

This commit is contained in:
RGBCube 2024-01-09 19:54:58 +03:00
parent 9a8df66d89
commit 2cda7f1edc
No known key found for this signature in database

View file

@ -26,7 +26,7 @@ pub static PAGES: LazyLock<HashMap<String, (Metadata, Markup)>> = LazyLock::new(
let content = String::from_utf8(file.content().to_vec()).unwrap();
let mut parts = content.splitn(2, "---").skip(1);
let mut parts = content.splitn(3, "---").skip(1);
let metadata: Metadata = serde_yaml::from_str(parts.next().unwrap()).unwrap();