|
@@ -335,6 +335,10 @@ impl Site { |
|
|
"resize_image", |
|
|
"resize_image", |
|
|
global_fns::make_resize_image(self.imageproc.clone()), |
|
|
global_fns::make_resize_image(self.imageproc.clone()), |
|
|
); |
|
|
); |
|
|
|
|
|
self.tera.register_function( |
|
|
|
|
|
"load_data", |
|
|
|
|
|
global_fns::make_load_data(self.content_path.clone(), self.base_path.clone()), |
|
|
|
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
pub fn register_tera_global_fns(&mut self) { |
|
|
pub fn register_tera_global_fns(&mut self) { |
|
@@ -349,10 +353,6 @@ impl Site { |
|
|
"get_taxonomy_url", |
|
|
"get_taxonomy_url", |
|
|
global_fns::make_get_taxonomy_url(&self.taxonomies), |
|
|
global_fns::make_get_taxonomy_url(&self.taxonomies), |
|
|
); |
|
|
); |
|
|
self.tera.register_function( |
|
|
|
|
|
"load_data", |
|
|
|
|
|
global_fns::make_load_data(self.content_path.clone(), self.base_path.clone()), |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// Add a page to the site |
|
|
/// Add a page to the site |
|
|