Skip to content

Commit 9e2e31a

Browse files
committed
Fix section transparency serialization
Fixes passing section.transparency for getzola#1840
1 parent 4bf67af commit 9e2e31a

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
@@ -109,6 +109,8 @@ translations: Array<TranslatedContent>;
109109
backlinks: Array<{permalink: String, title: String?}>;
110110
// Whether this section generates a feed or not. Taken from the front-matter if set
111111
generate_feed: bool;
112+
// Whether this section is transparent. Taken from the front-matter if set
113+
transparent: bool;
112114
```
113115
114116
## Table of contents

0 commit comments

Comments
 (0)