From 954f1ce533c61a64472fde5c63a904c95d48c511 Mon Sep 17 00:00:00 2001 From: William Ouwehand Date: Thu, 21 Mar 2024 23:23:22 +0100 Subject: [PATCH] Fix section transparency serialization (#2462) Fixes passing section.transparency for https://github.com/getzola/zola/issues/1840 --- components/content/src/ser.rs | 2 ++ docs/content/documentation/templates/pages-sections.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/components/content/src/ser.rs b/components/content/src/ser.rs index 18e175f11..607d361de 100644 --- a/components/content/src/ser.rs +++ b/components/content/src/ser.rs @@ -161,6 +161,7 @@ pub struct SerializingSection<'a> { translations: Vec>, backlinks: Vec>, generate_feed: bool, + transparent: bool, } #[derive(Debug)] @@ -220,6 +221,7 @@ impl<'a> SerializingSection<'a> { assets: §ion.serialized_assets, lang: §ion.lang, generate_feed: section.meta.generate_feed, + transparent: section.meta.transparent, pages, subsections, translations, diff --git a/docs/content/documentation/templates/pages-sections.md b/docs/content/documentation/templates/pages-sections.md index b1394a509..99a067601 100644 --- a/docs/content/documentation/templates/pages-sections.md +++ b/docs/content/documentation/templates/pages-sections.md @@ -110,6 +110,8 @@ translations: Array; 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