1
Fork 0

Add default rust logo for documentation

This commit is contained in:
Guillaume Gomez 2019-01-12 22:25:29 +01:00
parent ceb2512144
commit 2200fd3c7c
4 changed files with 11 additions and 1 deletions

View file

@ -177,7 +177,10 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
root_path = page.root_path,
css_class = page.css_class,
logo = if layout.logo.is_empty() {
String::new()
format!("<a href='{}{}/index.html'>\
<img src='{static_root_path}rust-logo{suffix}.png' alt='logo' width='100'></a>",
static_root_path=static_root_path,
suffix=page.resource_suffix)
} else {
format!("<a href='{}{}/index.html'>\
<img src='{}' alt='logo' width='100'></a>",