mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-31 00:34: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)
|
fs.writeFileSync(`${imageDir}/${fileName}.${extension}`, compressed)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: add to config and use in generateSocialImage
|
||||||
|
// Social image defaults
|
||||||
const ogHeight = 1200
|
const ogHeight = 1200
|
||||||
const ogWidth = 676
|
const ogWidth = 676
|
||||||
const extension = "webp"
|
const extension = "webp"
|
||||||
|
|
||||||
const imageDir = "public/static/social-images"
|
const imageDir = "public/static/social-images"
|
||||||
|
|
||||||
export default (() => {
|
export default (() => {
|
||||||
let fontsPromise: Promise<SatoriOptions["fonts"]>
|
let fontsPromise: Promise<SatoriOptions["fonts"]>
|
||||||
function Head({ cfg, fileData, externalResources }: QuartzComponentProps) {
|
function Head({ cfg, fileData, externalResources }: QuartzComponentProps) {
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import { SatoriOptions } from "satori/wasm"
|
|||||||
import { GlobalConfiguration } from "../cfg"
|
import { GlobalConfiguration } from "../cfg"
|
||||||
import { SocialImageOptions } from "./imageHelper"
|
import { SocialImageOptions } from "./imageHelper"
|
||||||
|
|
||||||
|
// TODO: proper typing
|
||||||
export const defaultImage = (
|
export const defaultImage = (
|
||||||
cfg: GlobalConfiguration,
|
cfg: GlobalConfiguration,
|
||||||
title: string,
|
title: string,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user