30 lines
871 B
TypeScript
30 lines
871 B
TypeScript
|
import { Head } from "$fresh/runtime.ts";
|
||
|
import { URL } from "utils";
|
||
|
|
||
|
export default function Meta({
|
||
|
title,
|
||
|
description,
|
||
|
after_slash,
|
||
|
color,
|
||
|
}: {
|
||
|
title: string;
|
||
|
description: string;
|
||
|
after_slash: string;
|
||
|
color?: string;
|
||
|
}) {
|
||
|
return (
|
||
|
<Head>
|
||
|
<meta content={title} property="og:title" />
|
||
|
<meta content={description} property="og:description" />
|
||
|
<meta content={`${URL}/${after_slash}`} property="og:url" />
|
||
|
<meta content={color} data-react-helmet="true" name="theme-color" />
|
||
|
</Head>
|
||
|
);
|
||
|
}
|
||
|
{
|
||
|
/* <meta content="Latula Homestuck" property="og:title" />
|
||
|
<meta content="also from Pyrope" property="og:description" />
|
||
|
<meta content="https://latula.pyrope.net/" property="og:url" />
|
||
|
<meta content="#008282" data-react-helmet="true" name="theme-color" /> */
|
||
|
}
|