Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit cc990ea

Browse files
committed
add back favicon
Signed-off-by: Abhi Agarwal <[email protected]>
1 parent a167031 commit cc990ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

quartz/components/Head.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ export default (() => {
121121
const path = url.pathname as FullSlug
122122
const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!)
123123

124-
const iconPath = joinSegments(baseDir, "static/icon.png")
125-
126124
const ogImageDefaultPath = `https://${cfg.baseUrl}/static/og-image.png`
127125
// "static/social-images/slug-filename.md.webp"
128126
const ogImageGeneratedPath = `https://${cfg.baseUrl}/${fileDir.replace(
@@ -194,7 +192,10 @@ export default (() => {
194192
<meta property="twitter:url" content={socialUrl}></meta>
195193
</>
196194
)}
197-
<link rel="icon" href={iconPath} />
195+
<link
196+
rel="icon"
197+
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🤔</text></svg>"
198+
/>
198199
<meta name="description" content={description} />
199200
<meta name="generator" content="Quartz" />
200201
{css.map((resource) => CSSResourceToStyleElement(resource, true))}

0 commit comments

Comments
 (0)