mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 06:44:07 -06:00
Update Head.tsx
This commit is contained in:
parent
1bd6b2bf5e
commit
5e3b34e567
@ -170,21 +170,21 @@ export default (() => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<head>
|
<head>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta charSet="utf-8" />
|
<meta charSet="utf-8" />
|
||||||
{cfg.theme.cdnCaching && cfg.theme.fontOrigin === "local" ? (
|
{cfg.theme.cdnCaching && cfg.theme.fontOrigin === "local" ? (
|
||||||
<>
|
<>
|
||||||
<link rel="preconnect" href="https://cdn.staticfile.org" />
|
<link rel="preconnect" href="https://cdn.staticfile.org" />
|
||||||
<link rel="stylesheet" href="https://cdn.staticfile.org/lxgw-wenkai-webfont/1.7.0/style.css" />
|
<link rel="stylesheet" href="https://cdn.staticfile.org/lxgw-wenkai-webfont/1.7.0/style.css" />
|
||||||
</>
|
</>
|
||||||
) : cfg.theme.fontOrigin === "googleFonts" && (
|
) : 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" />
|
||||||
<link rel="stylesheet" href={googleFontHref(cfg.theme)} />
|
<link rel="stylesheet" href={googleFontHref(cfg.theme)} />
|
||||||
</>
|
</>
|
||||||
)}
|
) : null}
|
||||||
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossOrigin="anonymous" />
|
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossOrigin="anonymous" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
{/* OG/Twitter meta tags */}
|
{/* OG/Twitter meta tags */}
|
||||||
<meta name="og:site_name" content={cfg.pageTitle}></meta>
|
<meta name="og:site_name" content={cfg.pageTitle}></meta>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user