Add default rust logo for documentation
This commit is contained in:
parent
ceb2512144
commit
2200fd3c7c
4 changed files with 11 additions and 1 deletions
|
@ -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>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue