mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Added opengraph data
This commit is contained in:
parent
8c66f2b330
commit
ff67c66f70
|
|
@ -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
BIN
public/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 258 KiB |
Loading…
Reference in New Issue
Block a user