mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 09:05:30 +00:00
hide project description on search request
This commit is contained in:
parent
f3da6522c2
commit
3f536fd316
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue