From 299c53955dfc3265047c6c947c06b3fe461f715b Mon Sep 17 00:00:00 2001 From: Ben Schlegel Date: Sun, 10 Nov 2024 13:27:50 +0100 Subject: [PATCH] chore: remove unused `socialImage2.tsx` component --- quartz/util/socialImage2.tsx | 80 ------------------------------------ 1 file changed, 80 deletions(-) delete mode 100644 quartz/util/socialImage2.tsx diff --git a/quartz/util/socialImage2.tsx b/quartz/util/socialImage2.tsx deleted file mode 100644 index 16315212a..000000000 --- a/quartz/util/socialImage2.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import { SatoriOptions } from "satori/wasm" -import { GlobalConfiguration } from "../cfg" -import { SocialImageOptions, UserOpts } from "./imageHelper" -import { QuartzPluginData } from "../plugins/vfile" - -export const defaultImage: SocialImageOptions["imageStructure"] = ( - cfg: GlobalConfiguration, - userOpts: UserOpts, - title: string, - description: string, - fonts: SatoriOptions["fonts"], - fileData: QuartzPluginData, -) => { - // How many characters are allowed before switching to smaller font - const fontBreakPoint = 22 - const useSmallerFont = title.length > fontBreakPoint - - const { colorScheme } = userOpts - return ( -
-
-

- {title} -

-

- {description} -

-
-
-
- ) -}