Skip to content

Commit

Permalink
Fix section transparency serialization (getzola#2462)
Browse files Browse the repository at this point in the history
Fixes passing section.transparency for
getzola#1840
  • Loading branch information
wold5 authored and veluca93 committed May 14, 2024
1 parent 6fc3caa commit ce5f624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/content/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ pub struct SerializingSection<'a> {
translations: Vec<TranslatedContent<'a>>,
backlinks: Vec<BackLink<'a>>,
generate_feed: bool,
transparent: bool,
}

#[derive(Debug)]
Expand Down Expand Up @@ -220,6 +221,7 @@ impl<'a> SerializingSection<'a> {
assets: &section.serialized_assets,
lang: &section.lang,
generate_feed: section.meta.generate_feed,
transparent: section.meta.transparent,
pages,
subsections,
translations,
Expand Down
2 changes: 2 additions & 0 deletions docs/content/documentation/templates/pages-sections.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ translations: Array<TranslatedContent>;
backlinks: Array<{permalink: String, title: String?}>;
// Whether this section generates a feed or not. Taken from the front-matter if set
generate_feed: bool;
// Whether this section is transparent. Taken from the front-matter if set
transparent: bool;
```
## Table of contents
Expand Down

0 comments on commit ce5f624

Please sign in to comment.