show pagination segment first in title

This commit is contained in:
yggverse 2025-08-10 10:45:49 +03:00
parent 808b871549
commit 3a1a65b561

View file

@ -51,15 +51,16 @@ fn index(
"index",
context! {
title: {
let mut t = meta.title.clone();
let mut t = String::new();
if let Some(p) = page && p > 1 {
t.push_str(&format!("Page {p}"));
t.push_str(S)
}
t.push_str(&meta.title);
if let Some(ref description) = meta.description {
t.push_str(S);
t.push_str(description)
}
if let Some(p) = page && p > 1 {
t.push_str(S);
t.push_str(&format!("Page {p}"));
}
t
},
meta: meta.inner(),