mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
change serde_yaml to serde_yml
This commit is contained in:
parent
91c65fa017
commit
35ac34b69c
4 changed files with 65 additions and 14 deletions
|
@ -93,7 +93,7 @@ pub struct Site {
|
|||
impl Site {
|
||||
/// Creates a new site from the given path.
|
||||
pub fn new(site_path: &Path) -> eyre::Result<Self> {
|
||||
let config: SiteConfig = serde_yaml::from_str(
|
||||
let config: SiteConfig = serde_yml::from_str(
|
||||
&std::fs::read_to_string(site_path.join("config.yaml"))
|
||||
.wrap_err("Failed to read site config")?,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue