mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 11:24:05 -06:00
adding new icon
This commit is contained in:
parent
b50e847952
commit
c17185aca5
@ -1,2 +1,3 @@
|
||||
#probability #bayesTheorem #setTheory
|
||||
|
||||
# Review of
|
||||
@ -1,4 +1,4 @@
|
||||
import sharp from "sharp"
|
||||
import { readFileSync } from "fs"
|
||||
import { joinSegments, QUARTZ, FullSlug } from "../../util/path"
|
||||
import { QuartzEmitterPlugin } from "../types"
|
||||
import { write } from "./helpers"
|
||||
@ -7,9 +7,9 @@ import { BuildCtx } from "../../util/ctx"
|
||||
export const Favicon: QuartzEmitterPlugin = () => ({
|
||||
name: "Favicon",
|
||||
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({
|
||||
ctx: { argv } as BuildCtx,
|
||||
|
||||
BIN
quartz/static/icon.ico
Normal file
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 |
Loading…
Reference in New Issue
Block a user