freshter-logs/components/Meta.tsx

30 lines
871 B
TypeScript
Raw Normal View History

2023-04-28 20:20:05 -04:00
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" /> */
}