Skip to content

Commit ce5f624

Browse files
wold5veluca93
authored andcommitted
Fix section transparency serialization (getzola#2462)
Fixes passing section.transparency for getzola#1840
1 parent 6fc3caa commit ce5f624

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

components/content/src/ser.rs

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ pub struct SerializingSection<'a> {
161161
translations: Vec<TranslatedContent<'a>>,
162162
backlinks: Vec<BackLink<'a>>,
163163
generate_feed: bool,
164+
transparent: bool,
164165
}
165166

166167
#[derive(Debug)]
@@ -220,6 +221,7 @@ impl<'a> SerializingSection<'a> {
220221
assets: &section.serialized_assets,
221222
lang: &section.lang,
222223
generate_feed: section.meta.generate_feed,
224+
transparent: section.meta.transparent,
223225
pages,
224226
subsections,
225227
translations,

docs/content/documentation/templates/pages-sections.md

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ translations: Array<TranslatedContent>;
110110
backlinks: Array<{permalink: String, title: String?}>;
111111
// Whether this section generates a feed or not. Taken from the front-matter if set
112112
generate_feed: bool;
113+
// Whether this section is transparent. Taken from the front-matter if set
114+
transparent: bool;
113115
```
114116
115117
## Table of contents

0 commit comments

Comments
 (0)