diff --git a/quartz/cfg.ts b/quartz/cfg.ts index 4d1ac664d..0175d5a1b 100644 --- a/quartz/cfg.ts +++ b/quartz/cfg.ts @@ -35,7 +35,7 @@ export interface GlobalConfiguration { */ baseUrl?: string /** - * Wether to generate and use social images (Open Graph and Twitter standard) for link previews + * Wether to generate social images (Open Graph and Twitter standard) for link previews */ generateSocialImages: boolean | Partial theme: Theme diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index e30cb1f2f..c1f0bd8ff 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -10,7 +10,7 @@ import { JSXInternal } from "preact/src/jsx" import { unescapeHTML } from "../util/escape" /** - * Generates social image (OG/twitter standard) and saves it as `.web` inside the public folder + * Generates social image (OG/twitter standard) and saves it as `.webp` inside the public folder * @param opts options for generating image */ async function generateSocialImage(opts: ImageOptions, userOpts: SocialImageOptions) { diff --git a/quartz/util/socialImage.tsx b/quartz/util/socialImage.tsx index ec65b5943..01ad5666a 100644 --- a/quartz/util/socialImage.tsx +++ b/quartz/util/socialImage.tsx @@ -2,7 +2,7 @@ import { SatoriOptions } from "satori/wasm" import { GlobalConfiguration } from "../cfg" import { SocialImageOptions } from "./imageHelper" -export const defaultImage = ( +export const defaultImage: SocialImageOptions["imageStructure"] = ( cfg: GlobalConfiguration, userOpts: SocialImageOptions, title: string,