From 3f536fd316943deb391dcf28ac6bceb7637362b3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 11 Aug 2025 19:38:29 +0300 Subject: [PATCH] hide project description on search request --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 440bd96..b7a0641 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,8 @@ fn index( t.push_str(S) } t.push_str(&meta.title); - if let Some(ref description) = meta.description && page.is_none_or(|p| p == 1) { + if let Some(ref description) = meta.description + && page.is_none_or(|p| p == 1) && search.is_none_or(|q| q.is_empty()) { t.push_str(S); t.push_str(description) }