mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-29 15:54: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
|
* Generates social image (OG/twitter standard) and saves it as `.webp` inside the public folder
|
||||||
* @param opts options for generating image
|
* @param opts options for generating image
|
||||||
*/
|
*/
|
||||||
async function generateSocialImage(opts: ImageOptions, userOpts: SocialImageOptions) {
|
async function generateSocialImage(
|
||||||
const { cfg, description, fileName, fontsPromise, title } = opts
|
{ cfg, description, fileName, fontsPromise, title }: ImageOptions,
|
||||||
|
userOpts: SocialImageOptions,
|
||||||
|
) {
|
||||||
const fonts = await fontsPromise
|
const fonts = await fontsPromise
|
||||||
|
|
||||||
// JSX that will be used to generate satori svg
|
// JSX that will be used to generate satori svg
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user