0.4.8: prioritise images inside link to root
This commit is contained in:
parent
0440e04a8a
commit
32c278f8bc
3 changed files with 6 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1638,7 +1638,7 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
|
|||
|
||||
[[package]]
|
||||
name = "site_icons"
|
||||
version = "0.4.7"
|
||||
version = "0.4.8"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"clap",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "site_icons"
|
||||
version = "0.4.7"
|
||||
version = "0.4.8"
|
||||
authors = ["Sam Denty <sam@samdenty.com>"]
|
||||
edition = "2018"
|
||||
license = "GPL-3.0"
|
||||
|
|
|
@ -245,6 +245,10 @@ impl Icons {
|
|||
})
|
||||
};
|
||||
|
||||
if mentions("href", Box::new(|attr| attr == "/")) {
|
||||
weight += 5;
|
||||
};
|
||||
|
||||
let mentions_logo = |attr_name| {
|
||||
mentions(
|
||||
attr_name,
|
||||
|
|
Reference in a new issue