From 2db7ec4843431b4d8a2352845653ae9acd1b59bc Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 3 Oct 2017 23:25:02 +0900 Subject: [PATCH] Remove deprecated link param of get_url --- components/templates/src/global_fns.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/templates/src/global_fns.rs b/components/templates/src/global_fns.rs index ba3c0939..438369f0 100644 --- a/components/templates/src/global_fns.rs +++ b/components/templates/src/global_fns.rs @@ -60,11 +60,7 @@ pub fn make_get_url(permalinks: HashMap, config: Config) -> Glob from_value::(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::(val.clone()) { Ok(v) => { // Internal link