add support for custom partials
Some checks are pending
Build Site / build (push) Waiting to run
Build Site / deploy (push) Blocked by required conditions

This commit is contained in:
zyl 2025-01-14 13:30:34 -08:00
parent fd40a5d31a
commit 1d502881f6
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
7 changed files with 690 additions and 350 deletions

View file

@ -130,6 +130,9 @@ pub struct PageMetadata {
/// Custom values passed to the base template.
#[serde(default)]
pub userdata: serde_yml::Value,
/// Whether this page being rendered is a partial. Set by the builder, not your page metadata.
#[serde(skip)]
pub is_partial: bool,
}
/// Struct containing information about the site.