From 2cda7f1edc1f638f190c25d9f01277dd17bb87de Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 9 Jan 2024 19:54:58 +0300 Subject: [PATCH] Fix splitn --- src/routes/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/markdown.rs b/src/routes/markdown.rs index bab98b5..dd9291f 100644 --- a/src/routes/markdown.rs +++ b/src/routes/markdown.rs @@ -26,7 +26,7 @@ pub static PAGES: LazyLock> = 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();