move away from serde_yml (ai garbage..) to serde_yaml_ng

This commit is contained in:
zyl 2025-01-27 12:00:20 -08:00
parent 855d29d9c4
commit 6edcb6a190
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
9 changed files with 43 additions and 44 deletions

View file

@ -10,8 +10,11 @@ use serde::{Deserialize, Serialize};
use time::{format_description::well_known::Rfc2822, OffsetDateTime};
use crate::{
builder::SiteBuilder, frontmatter::FrontMatterRequired, link_list::Link,
util::{self, format_timestamp}, PageMetadata,
builder::SiteBuilder,
frontmatter::FrontMatterRequired,
link_list::Link,
util::{self, format_timestamp},
PageMetadata,
};
/// Metadata for resources.
@ -30,7 +33,7 @@ pub struct ResourceMetadata {
pub desc: Option<String>,
/// Extra resource data not included.
#[serde(flatten)]
pub inner: serde_yml::Value,
pub inner: serde_yaml_ng::Value,
/// Whether the resource is a draft. Drafts can be committed without being published to the live site.
#[serde(default)]
pub draft: bool,