mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
implement custom userdata, resolves #11
This commit is contained in:
parent
6c31ccb9d5
commit
95a0765b1e
4 changed files with 35 additions and 0 deletions
|
@ -128,6 +128,9 @@ pub struct PageMetadata {
|
|||
/// The extra stuff to run for the page, if any.
|
||||
#[serde(default)]
|
||||
pub extra: Option<ExtraData>,
|
||||
/// Custom values passed to the base template.
|
||||
#[serde(default)]
|
||||
pub userdata: serde_yml::Value,
|
||||
}
|
||||
|
||||
/// Struct containing information about the site.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue