Browse Source

Register get_taxonomy global fn

index-subcmd
Vincent Prouillet 6 years ago
parent
commit
9972b72d91
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/site/src/lib.rs

+ 1
- 1
components/site/src/lib.rs 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_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_section", global_fns::make_get_section(&self.sections));
self.tera.register_global_function( self.tera.register_global_function(
"get_taxonomy_url",
"get_taxonomy",
global_fns::make_get_taxonomy(self.taxonomies.clone()) global_fns::make_get_taxonomy(self.taxonomies.clone())
); );
} }


Loading…
Cancel
Save