mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
move away from serde_yml (ai garbage..) to serde_yaml_ng
This commit is contained in:
parent
855d29d9c4
commit
6edcb6a190
9 changed files with 43 additions and 44 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue