From 30c0dc70ef8ffdc6f3f42bf6a16180253b4ae712 Mon Sep 17 00:00:00 2001 From: Tim Kye Date: Mon, 5 Feb 2024 10:27:18 -0800 Subject: [PATCH 1/3] bump gfm --- deps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.ts b/deps.ts index e47d6fc..c3a9896 100644 --- a/deps.ts +++ b/deps.ts @@ -14,7 +14,7 @@ export { } from "https://deno.land/std@0.193.0/http/mod.ts"; export { extract as frontMatter } from "https://deno.land/std@0.193.0/front_matter/any.ts"; -export * as gfm from "https://deno.land/x/gfm@0.2.5/mod.ts"; +export * as gfm from 'https://deno.land/x/gfm@0.6.0/mod.ts' export { Fragment, h } from "https://deno.land/x/htm@0.1.3/mod.ts"; export { default as html, From c283a1655293712f276b5d7bfe2fdfa398555473 Mon Sep 17 00:00:00 2001 From: Tim Kye Date: Wed, 7 Feb 2024 15:10:46 -0800 Subject: [PATCH 2/3] use theme in color and component --- blog.tsx | 2 +- components.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog.tsx b/blog.tsx index 0bc7309..a820319 100644 --- a/blog.tsx +++ b/blog.tsx @@ -104,7 +104,7 @@ function errorHandler(err: unknown) { */ export default async function blog(settings?: BlogSettings) { html.use(UnoCSS(settings?.unocss)); // Load custom unocss module if provided - html.use(ColorScheme("auto")); + html.use(ColorScheme(settings?.theme == "dark" ? "dark" : "auto")); const url = callsites()[1].getFileName()!; const blogState = await configureBlog(url, IS_DEV, settings); diff --git a/components.tsx b/components.tsx index 8eb2b9f..b3335ae 100644 --- a/components.tsx +++ b/components.tsx @@ -217,8 +217,8 @@ export function PostPage({ post, state }: PostPageProps) {
From 9dc72590b60f2b4f70d30f6bc5b1cc29eb7ef0cd Mon Sep 17 00:00:00 2001 From: Tim Kye Date: Wed, 7 Feb 2024 15:13:37 -0800 Subject: [PATCH 3/3] fix lint --- deps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.ts b/deps.ts index c3a9896..6404eb2 100644 --- a/deps.ts +++ b/deps.ts @@ -14,7 +14,7 @@ export { } from "https://deno.land/std@0.193.0/http/mod.ts"; export { extract as frontMatter } from "https://deno.land/std@0.193.0/front_matter/any.ts"; -export * as gfm from 'https://deno.land/x/gfm@0.6.0/mod.ts' +export * as gfm from "https://deno.land/x/gfm@0.6.0/mod.ts"; export { Fragment, h } from "https://deno.land/x/htm@0.1.3/mod.ts"; export { default as html,