chore: add todos

This commit is contained in:
Ben Schlegel 2023-09-25 20:32:21 +02:00
parent a476a6c784
commit d1dfc59f0d
No known key found for this signature in database
GPG Key ID: 8BDB8891C1575E22
2 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

@ -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,