Added opengraph data

This commit is contained in:
Dustin Brett 2023-11-18 00:11:00 -08:00
parent 8c66f2b330
commit ff67c66f70
2 changed files with 14 additions and 1 deletions

View File

@ -17,7 +17,19 @@ import {
} from "utils/constants";
import { getDpi, imageSrc, imageSrcs, imageToBufferUrl } from "utils/functions";
const { alias, description } = PACKAGE_DATA;
const { alias, author, description } = PACKAGE_DATA;
const OpenGraph: FC = () => (
<>
<meta content={alias} property="og:title" />
<meta content="website" property="og:type" />
<meta content={author.url} property="og:url" />
<meta content={`${author.url}/screenshot.png`} property="og:image" />
<meta content={description} property="og:description" />
</>
);
const MemoizedOpenGraph = memo(OpenGraph);
const PreloadDesktopIcons: FC = () => (
<>
@ -139,6 +151,7 @@ const Metadata: FC = () => {
name="viewport"
/>
<meta content={description} name="description" />
<MemoizedOpenGraph />
<MemoizedPreloadDesktopIcons />
{customCursor && (
<style>{`*, *::before, *::after { cursor: url(${customCursor}), default !important; }`}</style>

BIN
public/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB