mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04: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
|
||||
export const sharedPageComponents: SharedLayout = {
|
||||
head: Component.Head({
|
||||
favicons: [
|
||||
{ path: "static/icon.png", size: "200x200", mime: "image/png" }
|
||||
],
|
||||
favicons: [{ path: "static/icon.png", size: "200x200", mime: "image/png" }],
|
||||
|
||||
openGraph: {
|
||||
path: "static/og-image.png",
|
||||
mime: "image/png",
|
||||
width: "1200",
|
||||
height: "675",
|
||||
alt: "Quartz logo"
|
||||
}
|
||||
alt: "Quartz logo",
|
||||
},
|
||||
}),
|
||||
header: [],
|
||||
afterBody: [],
|
||||
|
||||
@ -55,10 +55,14 @@ export default ((opts?: Options) => {
|
||||
{cfg.baseUrl && opts?.openGraph && (
|
||||
<>
|
||||
<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.width && (<meta property="og:image:width" content={opts.openGraph.path} />)}
|
||||
{opts.openGraph.height && (<meta property="og:image:height" content={opts.openGraph.height} />)}
|
||||
{opts.openGraph.alt && (<meta property="og:image:alt" content={opts.openGraph.alt} />)}
|
||||
{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.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 }) => (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user