mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-28 07:14:05 -06:00
chore: add todos
This commit is contained in:
parent
a476a6c784
commit
d1dfc59f0d
@ -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<SatoriOptions["fonts"]>
|
||||
function Head({ cfg, fileData, externalResources }: QuartzComponentProps) {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user