Skip to content

Commit

Permalink
add back favicon
Browse files Browse the repository at this point in the history
Signed-off-by: Abhi Agarwal <[email protected]>
  • Loading branch information
abhiaagarwal committed Jan 8, 2025
1 parent a167031 commit cc990ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quartz/components/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ export default (() => {
const path = url.pathname as FullSlug
const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!)

const iconPath = joinSegments(baseDir, "static/icon.png")

const ogImageDefaultPath = `https://${cfg.baseUrl}/static/og-image.png`
// "static/social-images/slug-filename.md.webp"
const ogImageGeneratedPath = `https://${cfg.baseUrl}/${fileDir.replace(
Expand Down Expand Up @@ -194,7 +192,10 @@ export default (() => {
<meta property="twitter:url" content={socialUrl}></meta>
</>
)}
<link rel="icon" href={iconPath} />
<link
rel="icon"
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>"
/>
<meta name="description" content={description} />
<meta name="generator" content="Quartz" />
{css.map((resource) => CSSResourceToStyleElement(resource, true))}
Expand Down

0 comments on commit cc990ea

Please sign in to comment.