Add helmet to pages

This commit is contained in:
Kamran Ahmed
2021-09-04 22:58:58 +02:00
parent 6ba22799cd
commit af8a79c48d
19 changed files with 145 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import { ContentPageHeader } from '../../components/content-page-header';
import MdRenderer from '../../components/md-renderer';
import { getAllGuides, getGuideById, GuideType } from '../../lib/guide';
import siteConfig from '../../content/site.json';
import Helmet from '../../components/helmet';
type GuideProps = {
guide: GuideType;
@ -19,6 +20,10 @@ export default function Guide(props: GuideProps) {
return (
<Box bg='white' minH='100vh'>
<GlobalHeader />
<Helmet
title={guide.title}
description={guide.description}
/>
<Box mb='60px'>
<ContentPageHeader
title={guide.title}