Browse Source

Remove deprecated link param of get_url

index-subcmd
Vincent Prouillet 6 years ago
parent
commit
2db7ec4843
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      components/templates/src/global_fns.rs

+ 1
- 5
components/templates/src/global_fns.rs View File

@@ -60,11 +60,7 @@ pub fn make_get_url(permalinks: HashMap<String, String>, config: Config) -> Glob
from_value::<bool>(c.clone()).unwrap_or(false)
});

if args.contains_key("link") {
println!("> DEPRECATION -- `link` is deprecated for `get_url`: use `path` instead");
}

match args.get("link").or_else(|| args.get("path")) {
match args.get("path") {
Some(val) => match from_value::<String>(val.clone()) {
Ok(v) => {
// Internal link


Loading…
Cancel
Save