1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-23 12:06:07 -05:00

do not double import site-wide opengraph-image.jpg

This commit is contained in:
2025-04-11 14:22:06 -04:00
parent 4cb6ed82ee
commit 0ade75716e
9 changed files with 108 additions and 239 deletions

View File

@@ -17,8 +17,6 @@ import "./themes.css";
import styles from "./layout.module.css";
import ogImage from "./opengraph-image.jpg";
export const metadata: Metadata = defaultMetadata;
const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
@@ -34,12 +32,7 @@ const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
"@id": `${BASE_URL}/#person`,
name: config.authorName,
url: BASE_URL,
image: {
"@type": "ImageObject",
contentUrl: `${BASE_URL}${ogImage.src}`,
width: `${ogImage.width}`,
height: `${ogImage.height}`,
},
image: [`${BASE_URL}/opengraph-image.jpg`],
sameAs: [
`${BASE_URL}`,
`https://${config.authorSocial?.mastodon}`,