diff --git a/src/blog.rs b/src/blog.rs index 205182c6030b10e8f9bc47a11ca152efe1ce08cb..68949441f2e8ac141aae2d6ce098051941f1a46a 100644 --- a/src/blog.rs +++ b/src/blog.rs @@ -55,8 +55,8 @@ impl Blog { } content.push_str(&format!( - r#"<img class="badge" src="/img/badges/{}" alt="{}" />"#, - b.name, b.alt + r#"<img class="badge" src="/img/badges/{}" alt="{}" title="{}" />"#, + b.name, b.alt, b.alt )); if b.href.is_some() { @@ -116,8 +116,8 @@ impl Blog { let logo = match &self.config.logo { Some(logo) => format!( - r#"<img src="{}" width="{}" height="{}" alt="{}" class="align-right" />"#, - logo.path, logo.width, logo.height, logo.alt + r#"<img src="{}" width="{}" height="{}" alt="{}" title="{}" class="align-right" />"#, + logo.path, logo.width, logo.height, logo.alt, logo.alt ), None => "".to_string(), };