remove prints

This commit is contained in:
sspaeti 2024-02-20 18:20:50 +01:00
parent 643a1c89ad
commit c401da7c05
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ impl HtmlHandlebars {
let parsed = matter.parse(&ch.content); let parsed = matter.parse(&ch.content);
let (content, new_content) = if let Some(data) = parsed.data { let (content, new_content) = if let Some(data) = parsed.data {
eprintln!("DEBUG11: Parsed frontmatter: {:?}", &data); debug!("Parsed frontmatter: {:?}", &data);
let yaml_str = extract_frontmatter(&ch.content).unwrap_or_default(); let yaml_str = extract_frontmatter(&ch.content).unwrap_or_default();
let front_matter_result: Result<FrontMatter, serde_yaml::Error> = serde_yaml::from_str(yaml_str); let front_matter_result: Result<FrontMatter, serde_yaml::Error> = serde_yaml::from_str(yaml_str);
// let front_matter_result: Result<FrontMatter, serde_yaml::Error> = serde_yaml::from_str(&ch.content); // let front_matter_result: Result<FrontMatter, serde_yaml::Error> = serde_yaml::from_str(&ch.content);
@ -88,7 +88,7 @@ impl HtmlHandlebars {
ctx.data.insert("og_image_url".to_owned(), json!(front_matter.featured_image_url)); ctx.data.insert("og_image_url".to_owned(), json!(front_matter.featured_image_url));
}, },
Err(e) => { Err(e) => {
eprintln!("Deserialization error: {:?}", e); eprintln!("Frontmatter: Deserialization error: {:?}", e);
}, },
} }