parent
5caf24f06c
commit
83472a53d7
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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…
Reference in a new issue