mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Skip objects in front-matter
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+3
-1
@@ -22,7 +22,9 @@
|
||||
export let getImage: (path: string) => Promise<proj.Blob>;
|
||||
export let hash: string | null = null;
|
||||
|
||||
const frontMatter = Object.entries(doc.data);
|
||||
const frontMatter = Object.entries(doc.data).filter(
|
||||
([, val]) => typeof val === "string" || typeof val === "number",
|
||||
);
|
||||
marked.use({ extensions, renderer });
|
||||
|
||||
let container: HTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user