Browse Source

Register load_data early

Closes #582
index-subcmd
Vincent Prouillet 5 years ago
parent
commit
83472a53d7
2 changed files with 8 additions and 5 deletions
  1. +4
    -1
      CHANGELOG.md
  2. +4
    -4
      components/site/src/lib.rs

+ 4
- 1
CHANGELOG.md View File

@@ -5,7 +5,10 @@
- Add support for content in multiple languages - Add support for content in multiple languages
- Lower latency on serve before rebuilding from 2 to 1 second - Lower latency on serve before rebuilding from 2 to 1 second
- Allow processing PNG and produced images are less blurry - Allow processing PNG and produced images are less blurry
- Add an id (`zola-continue-reading`)
- Add an id (`zola-continue-reading`) to the paragraph generated after a summary
- Add Dracula syntax highlighting theme
- Fix using inline styles in headers



## 0.5.1 (2018-12-14) ## 0.5.1 (2018-12-14)




+ 4
- 4
components/site/src/lib.rs View File

@@ -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


Loading…
Cancel
Save