Remove earlier/later/lighter/heavier from pages when rendering sections
This commit is contained in:
parent
e77dbe0697
commit
e119b68533
|
@ -2,6 +2,11 @@
|
|||
|
||||
## 0.6.0 (unreleased)
|
||||
|
||||
### Breaking
|
||||
- `earlier/later` and `lighter/heavier` are not set anymore on pages when rendering
|
||||
a section
|
||||
|
||||
### Other
|
||||
- Add support for content in multiple languages
|
||||
- Lower latency on serve before rebuilding from 2 to 1 second
|
||||
- Allow processing PNG and produced images are less blurry
|
||||
|
|
546
Cargo.lock
generated
546
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -6,5 +6,5 @@ authors = ["Vincent Prouillet <prouillet.vincent@gmail.com>"]
|
|||
[dependencies]
|
||||
tera = "0.11"
|
||||
toml = "0.4"
|
||||
image = "0.20"
|
||||
image = "0.21"
|
||||
syntect = "3"
|
||||
|
|
|
@ -7,7 +7,7 @@ authors = ["Vojtěch Král <vojtech@kral.hk>"]
|
|||
lazy_static = "1"
|
||||
regex = "1.0"
|
||||
tera = "0.11"
|
||||
image = "0.20"
|
||||
image = "0.21"
|
||||
rayon = "1"
|
||||
|
||||
errors = { path = "../errors" }
|
||||
|
|
|
@ -225,7 +225,7 @@ impl<'a> SerializingSection<'a> {
|
|||
let mut subsections = Vec::with_capacity(section.subsections.len());
|
||||
|
||||
for k in §ion.pages {
|
||||
pages.push(library.get_page_by_key(*k).to_serialized(library));
|
||||
pages.push(library.get_page_by_key(*k).to_serialized_basic(library));
|
||||
}
|
||||
|
||||
for k in §ion.subsections {
|
||||
|
|
|
@ -32,9 +32,11 @@ word_count: Number;
|
|||
// Based on https://help.medium.com/hc/en-us/articles/214991667-Read-time
|
||||
reading_time: Number;
|
||||
// `earlier` and `later` are only populated if the section variable `sort_by` is set to `date`
|
||||
// and only set when rendering the page itself
|
||||
earlier: Page?;
|
||||
later: Page?;
|
||||
// `heavier` and `lighter` are only populated if the section variable `sort_by` is set to `weight`
|
||||
// and only set when rendering the page itself
|
||||
heavier: Page?;
|
||||
lighter: Page?;
|
||||
// See the Table of contents section below for more details
|
||||
|
|
Loading…
Reference in a new issue