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,