Files
laba-webgunea/front/src/components/SEO.tsx
Aitor Urrutia 2a48360784 Irudiak erakusten ditu (#8)
* feat: atzealde irudia erakusten du

* feat: cloudinary sartzen du

* feat: kartela erakusten du

* chore: typescript errorea ekiditen du

* feat: irisgarritasuna hobetzen du

* feat: modalaren estiloa hobetzendu

* feat: og image aldatzen du
2023-07-04 17:47:40 +02:00

25 lines
695 B
TypeScript

import { PageProps } from 'gatsby';
import React from 'react';
import { Helmet } from 'react-helmet';
import ogImagePath from '../images/og-image.jpeg';
interface Props {
title: string;
description?: string;
location: PageProps['location'];
}
export const SEO: React.VFC<Props> = ({ title, description, location }) => (
<Helmet title={`${title} | Laba`} htmlAttributes={{ lang: 'eu' }}>
{description && <meta name="description" content={description} />}
<meta
name="og:image"
content={`${location.protocol}//${location.host}${ogImagePath}`}
/>
<meta name="og:image:height" content="669" />
<meta name="og:image:width" content="1205" />
</Helmet>
);