mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-31 00:34:05 -06:00
lint: format
This commit is contained in:
parent
44b38555e5
commit
7e559fe973
@ -4,17 +4,15 @@ import * as Component from "./quartz/components"
|
|||||||
// components shared across all pages
|
// components shared across all pages
|
||||||
export const sharedPageComponents: SharedLayout = {
|
export const sharedPageComponents: SharedLayout = {
|
||||||
head: Component.Head({
|
head: Component.Head({
|
||||||
favicons: [
|
favicons: [{ path: "static/icon.png", size: "200x200", mime: "image/png" }],
|
||||||
{ path: "static/icon.png", size: "200x200", mime: "image/png" }
|
|
||||||
],
|
|
||||||
|
|
||||||
openGraph: {
|
openGraph: {
|
||||||
path: "static/og-image.png",
|
path: "static/og-image.png",
|
||||||
mime: "image/png",
|
mime: "image/png",
|
||||||
width: "1200",
|
width: "1200",
|
||||||
height: "675",
|
height: "675",
|
||||||
alt: "Quartz logo"
|
alt: "Quartz logo",
|
||||||
}
|
},
|
||||||
}),
|
}),
|
||||||
header: [],
|
header: [],
|
||||||
afterBody: [],
|
afterBody: [],
|
||||||
|
|||||||
@ -55,10 +55,14 @@ export default ((opts?: Options) => {
|
|||||||
{cfg.baseUrl && opts?.openGraph && (
|
{cfg.baseUrl && opts?.openGraph && (
|
||||||
<>
|
<>
|
||||||
<meta property="og:image" content={`https://${cfg.baseUrl}/${opts.openGraph.path}`} />
|
<meta property="og:image" content={`https://${cfg.baseUrl}/${opts.openGraph.path}`} />
|
||||||
{opts.openGraph.mime && (<meta property="og:image:type" content={opts.openGraph.mime} />)}
|
{opts.openGraph.mime && <meta property="og:image:type" content={opts.openGraph.mime} />}
|
||||||
{opts.openGraph.width && (<meta property="og:image:width" content={opts.openGraph.path} />)}
|
{opts.openGraph.width && (
|
||||||
{opts.openGraph.height && (<meta property="og:image:height" content={opts.openGraph.height} />)}
|
<meta property="og:image:width" content={opts.openGraph.path} />
|
||||||
{opts.openGraph.alt && (<meta property="og:image:alt" content={opts.openGraph.alt} />)}
|
)}
|
||||||
|
{opts.openGraph.height && (
|
||||||
|
<meta property="og:image:height" content={opts.openGraph.height} />
|
||||||
|
)}
|
||||||
|
{opts.openGraph.alt && <meta property="og:image:alt" content={opts.openGraph.alt} />}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{icons.map(({ path, size, mime }) => (
|
{icons.map(({ path, size, mime }) => (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user