diff --git a/Cargo.lock b/Cargo.lock index f89149d..06c1529 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1638,7 +1638,7 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" [[package]] name = "site_icons" -version = "0.4.7" +version = "0.4.8" dependencies = [ "byteorder", "clap", diff --git a/Cargo.toml b/Cargo.toml index 500635a..658b2dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "site_icons" -version = "0.4.7" +version = "0.4.8" authors = ["Sam Denty "] edition = "2018" license = "GPL-3.0" diff --git a/src/icons.rs b/src/icons.rs index 1aa7d0d..b33bd7b 100644 --- a/src/icons.rs +++ b/src/icons.rs @@ -245,6 +245,10 @@ impl Icons { }) }; + if mentions("href", Box::new(|attr| attr == "/")) { + weight += 5; + }; + let mentions_logo = |attr_name| { mentions( attr_name,