Register get_taxonomy global fn

This commit is contained in:
Vincent Prouillet 2018-07-27 18:45:19 +02:00
parent e83d76bf8a
commit 9972b72d91

View file

@ -299,7 +299,7 @@ impl Site {
self.tera.register_global_function("get_page", global_fns::make_get_page(&self.pages));
self.tera.register_global_function("get_section", global_fns::make_get_section(&self.sections));
self.tera.register_global_function(
"get_taxonomy_url",
"get_taxonomy",
global_fns::make_get_taxonomy(self.taxonomies.clone())
);
}