added partial settings updates
This commit is contained in:
@@ -29,6 +29,26 @@ impl Default for SiteConfig {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default)]
|
||||
pub struct SiteConfigPatch {
|
||||
#[serde(default)]
|
||||
pub title: Option<String>,
|
||||
#[serde(default)]
|
||||
pub subtitle: Option<String>,
|
||||
#[serde(default)]
|
||||
pub welcome_title: Option<String>,
|
||||
#[serde(default)]
|
||||
pub welcome_subtitle: Option<String>,
|
||||
#[serde(default)]
|
||||
pub footer: Option<String>,
|
||||
#[serde(default)]
|
||||
pub favicon: Option<String>,
|
||||
#[serde(default)]
|
||||
pub theme: Option<String>,
|
||||
#[serde(default)]
|
||||
pub custom_css: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Default)]
|
||||
pub struct PostMeta {
|
||||
pub date: NaiveDate,
|
||||
|
||||
Reference in New Issue
Block a user