-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: create Links section in site config
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
#[derive(serde::Deserialize, PartialEq, Eq, Default)] | ||
#[serde(rename_all = "kebab-case", deny_unknown_fields)] | ||
pub struct Links { | ||
pub trim_index_html: Option<bool>, | ||
} | ||
|
||
#[derive(serde::Deserialize, PartialEq, Eq)] | ||
#[serde(rename_all = "kebab-case")] | ||
#[serde(rename_all = "kebab-case", deny_unknown_fields)] | ||
pub struct SiteConfig { | ||
pub base_url: String, | ||
pub base_url_develop: String, | ||
pub trim_index_html: Option<bool>, | ||
#[serde(default)] | ||
pub links: Links, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters