From ea273384165326499fb4ec7fc9df7f7f4725a4f0 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 6 Mar 2024 11:17:01 -0800 Subject: [PATCH] fix live update of front matter --- src/resolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers.ts b/src/resolvers.ts index ca8d846b3..5b77b03ec 100644 --- a/src/resolvers.ts +++ b/src/resolvers.ts @@ -68,7 +68,7 @@ export const builtins = new Map([ * them to any files referenced by static HTML. */ export async function getResolvers(page: MarkdownPage, {root, path}: {root: string; path: string}): Promise { - const hash = createHash("sha256").update(page.html); + const hash = createHash("sha256").update(page.html).update(JSON.stringify(page.data)); const assets = findAssets(page.html, path); const files = new Set(); const fileMethods = new Set();