mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-28 23:34:05 -06:00
refactor: clean function signature
This commit is contained in:
parent
e64f2e7e0a
commit
49ccbfab51
@ -13,8 +13,10 @@ import { unescapeHTML } from "../util/escape"
|
||||
* 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) {
|
||||
const { cfg, description, fileName, fontsPromise, title } = opts
|
||||
async function generateSocialImage(
|
||||
{ cfg, description, fileName, fontsPromise, title }: ImageOptions,
|
||||
userOpts: SocialImageOptions,
|
||||
) {
|
||||
const fonts = await fontsPromise
|
||||
|
||||
// JSX that will be used to generate satori svg
|
||||
|
||||
Loading…
Reference in New Issue
Block a user