adding new icon

This commit is contained in:
Eddy Zhou 2025-09-24 12:19:41 -04:00
parent b50e847952
commit c17185aca5
5 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
#probability #bayesTheorem #setTheory #probability #bayesTheorem #setTheory
# Review of

View File

@ -1,4 +1,4 @@
import sharp from "sharp" import { readFileSync } from "fs"
import { joinSegments, QUARTZ, FullSlug } from "../../util/path" import { joinSegments, QUARTZ, FullSlug } from "../../util/path"
import { QuartzEmitterPlugin } from "../types" import { QuartzEmitterPlugin } from "../types"
import { write } from "./helpers" import { write } from "./helpers"
@ -7,9 +7,9 @@ import { BuildCtx } from "../../util/ctx"
export const Favicon: QuartzEmitterPlugin = () => ({ export const Favicon: QuartzEmitterPlugin = () => ({
name: "Favicon", name: "Favicon",
async *emit({ argv }) { async *emit({ argv }) {
const iconPath = joinSegments(QUARTZ, "static", "icon.png") const iconPath = joinSegments(QUARTZ, "static", "icon.ico")
const faviconContent = sharp(iconPath).resize(48, 48).toFormat("png") const faviconContent = readFileSync(iconPath)
yield write({ yield write({
ctx: { argv } as BuildCtx, ctx: { argv } as BuildCtx,

BIN
quartz/static/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB