add support for custom scripts on a page

This commit is contained in:
zyl 2024-06-14 22:12:12 -07:00
parent 4d1d5308d3
commit 831a1486ee
No known key found for this signature in database
GPG key ID: FDAEE0976A45AAC3
3 changed files with 9 additions and 0 deletions

View file

@ -67,6 +67,9 @@ pub struct PageMetadata {
pub title: Option<String>,
/// The template to use for the page. If not specified, it defaults to "base".
pub template: Option<String>,
/// The page's custom scripts, if any.
#[serde(default)]
pub scripts: Vec<String>,
/// The extra stuff to run for the page, if any.
pub extra: Option<String>,
}