lint: format

This commit is contained in:
Sohum Mendon 2024-10-13 18:04:27 -07:00
parent 44b38555e5
commit 7e559fe973
2 changed files with 11 additions and 9 deletions

View File

@ -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: [],

View File

@ -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 }) => (