Remove deprecated link param of get_url
This commit is contained in:
parent
f0674ed576
commit
2db7ec4843
|
@ -60,11 +60,7 @@ pub fn make_get_url(permalinks: HashMap<String, String>, config: Config) -> Glob
|
||||||
from_value::<bool>(c.clone()).unwrap_or(false)
|
from_value::<bool>(c.clone()).unwrap_or(false)
|
||||||
});
|
});
|
||||||
|
|
||||||
if args.contains_key("link") {
|
match args.get("path") {
|
||||||
println!("> DEPRECATION -- `link` is deprecated for `get_url`: use `path` instead");
|
|
||||||
}
|
|
||||||
|
|
||||||
match args.get("link").or_else(|| args.get("path")) {
|
|
||||||
Some(val) => match from_value::<String>(val.clone()) {
|
Some(val) => match from_value::<String>(val.clone()) {
|
||||||
Ok(v) => {
|
Ok(v) => {
|
||||||
// Internal link
|
// Internal link
|
||||||
|
|
Loading…
Reference in a new issue