Skip to content

Commit

Permalink
Title in title
Browse files Browse the repository at this point in the history
  • Loading branch information
strawmelonjuice committed Aug 24, 2024
1 parent 16c090d commit 1ec0005
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/Main/renders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,12 @@ mod in_renderer {
head.push_str("\n\t\t<meta charset=\"utf-8\" />");
head.push_str(
format!(
"\n\t\t<title>{}</title>",
pageish_template_data.meta.title.clone()
"\n\t\t<title>{}{}</title>",
pageish_template_data.meta.title.clone(),
match scene.sitename {
Some(s) => format!(" - {}", s),
None => String::new(),
}
)
.as_str(),
);
Expand Down

0 comments on commit 1ec0005

Please sign in to comment.