|
|
@@ -67,7 +67,6 @@ pub struct SerializingPage<'a> { |
|
|
|
summary: &'a Option<String>, |
|
|
|
word_count: Option<usize>, |
|
|
|
reading_time: Option<usize>, |
|
|
|
toc: &'a [Header], |
|
|
|
assets: &'a [String], |
|
|
|
draft: bool, |
|
|
|
lang: &'a str, |
|
|
@@ -129,7 +128,6 @@ impl<'a> SerializingPage<'a> { |
|
|
|
summary: &page.summary, |
|
|
|
word_count: page.word_count, |
|
|
|
reading_time: page.reading_time, |
|
|
|
toc: &page.toc, |
|
|
|
assets: &page.serialized_assets, |
|
|
|
draft: page.is_draft(), |
|
|
|
lang: &page.lang, |
|
|
@@ -185,7 +183,6 @@ impl<'a> SerializingPage<'a> { |
|
|
|
summary: &page.summary, |
|
|
|
word_count: page.word_count, |
|
|
|
reading_time: page.reading_time, |
|
|
|
toc: &page.toc, |
|
|
|
assets: &page.serialized_assets, |
|
|
|
draft: page.is_draft(), |
|
|
|
lang: &page.lang, |
|
|
@@ -212,7 +209,6 @@ pub struct SerializingSection<'a> { |
|
|
|
word_count: Option<usize>, |
|
|
|
reading_time: Option<usize>, |
|
|
|
lang: &'a str, |
|
|
|
toc: &'a [Header], |
|
|
|
assets: &'a [String], |
|
|
|
pages: Vec<SerializingPage<'a>>, |
|
|
|
subsections: Vec<&'a str>, |
|
|
@@ -251,7 +247,6 @@ impl<'a> SerializingSection<'a> { |
|
|
|
components: §ion.components, |
|
|
|
word_count: section.word_count, |
|
|
|
reading_time: section.reading_time, |
|
|
|
toc: §ion.toc, |
|
|
|
assets: §ion.serialized_assets, |
|
|
|
lang: §ion.lang, |
|
|
|
pages, |
|
|
@@ -290,7 +285,6 @@ impl<'a> SerializingSection<'a> { |
|
|
|
components: §ion.components, |
|
|
|
word_count: section.word_count, |
|
|
|
reading_time: section.reading_time, |
|
|
|
toc: §ion.toc, |
|
|
|
assets: §ion.serialized_assets, |
|
|
|
lang: §ion.lang, |
|
|
|
pages: vec![], |
|
|
|