forked from phuocng/csslayout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayout.tsx
25 lines (22 loc) · 794 Bytes
/
Layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Head from 'next/head';
import * as React from 'react';
import { FooterBlock } from '../components/FooterBlock';
import { HeaderBlock } from '../components/HeaderBlock';
interface LayoutProps {
title: string;
}
export const Layout: React.FC<LayoutProps> = ({ children, title }) => (
<>
<Head>
<title>{title} - CSS Layout</title>
<meta name="description" content={title} />
<meta name="twitter:title" content={`${title} - CSS Layout`} />
<meta name="twitter:description" content={title} />
<meta property="og:title" content={`${title} - CSS Layout`} />
<meta property="og:description" content={title} />
</Head>
<HeaderBlock />
{children}
<FooterBlock />
</>
);