mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 06:14:06 -06:00
Update Head.tsx
This commit is contained in:
parent
510a01ae92
commit
268cae99d2
@ -139,7 +139,7 @@ export default (() => {
|
|||||||
|
|
||||||
const ogImageDefaultPath = `https://${cfg.baseUrl}/static/og-image.png`
|
const ogImageDefaultPath = `https://${cfg.baseUrl}/static/og-image.png`
|
||||||
// "static/social-images/slug-filename.md.webp"
|
// "static/social-images/slug-filename.md.webp"
|
||||||
const ogImageGeneratedPath = `https://${cfg.baseUrl}/${fileDir.replace(
|
const ogImageGeneratedPath = `https://${cfg.baseUrl}/${fileDir.replace(
|
||||||
`${ctx.argv.output}/`,
|
`${ctx.argv.output}/`,
|
||||||
"",
|
"",
|
||||||
)}/${fileName}.${extension}`
|
)}/${fileName}.${extension}`
|
||||||
@ -172,7 +172,13 @@ export default (() => {
|
|||||||
<head>
|
<head>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta charSet="utf-8" />
|
<meta charSet="utf-8" />
|
||||||
{cfg.theme.cdnCaching && cfg.theme.fontOrigin === "googleFonts" && (
|
{cfg.theme.cdnCaching && (
|
||||||
|
<>
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-lite-webfont@1.1.0/style.css" />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{cfg.theme.cdnCaching && cfg.theme.fontOrigin === "googleFonts" && (
|
||||||
<>
|
<>
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user