From d1dfc59f0dc1f81b39a26c2fc169e2ffe61be944 Mon Sep 17 00:00:00 2001 From: Ben Schlegel Date: Mon, 25 Sep 2023 20:32:21 +0200 Subject: [PATCH] chore: add todos --- quartz/components/Head.tsx | 4 +++- quartz/util/defaultImage.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index f4a1aa962..6ee0b4057 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -37,11 +37,13 @@ async function generateSocialImage(opts: ImageOptions) { fs.writeFileSync(`${imageDir}/${fileName}.${extension}`, compressed) } +// TODO: add to config and use in generateSocialImage +// Social image defaults const ogHeight = 1200 const ogWidth = 676 const extension = "webp" - const imageDir = "public/static/social-images" + export default (() => { let fontsPromise: Promise function Head({ cfg, fileData, externalResources }: QuartzComponentProps) { diff --git a/quartz/util/defaultImage.tsx b/quartz/util/defaultImage.tsx index f633876ad..7cc8c00dc 100644 --- a/quartz/util/defaultImage.tsx +++ b/quartz/util/defaultImage.tsx @@ -2,6 +2,7 @@ import { SatoriOptions } from "satori/wasm" import { GlobalConfiguration } from "../cfg" import { SocialImageOptions } from "./imageHelper" +// TODO: proper typing export const defaultImage = ( cfg: GlobalConfiguration, title: string,