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}

View File

@ -8,6 +8,7 @@ import { Footer } from '../../components/footer';
import { GuideGridItem } from './components/guide-grid-item';
import { PageHeader } from '../../components/page-header';
import { getAllGuides, GuideType } from '../../lib/guide';
import Helmet from '../../components/helmet';
type GuidesProps = {
guides: GuideType[]
@ -22,6 +23,10 @@ export default function Guides(props: GuidesProps) {
return (
<Box bg='white' minH='100vh'>
<GlobalHeader />
<Helmet
title={'Visual Guides'}
description={'Succinct graphical explanations to engineering topics.'}
/>
<Box mb='60px'>
<PageHeader
title={'Visual Guides'}