umami/components/Layout.js

23 lines
581 B
JavaScript
Raw Normal View History

2020-07-17 10:03:38 +02:00
import React from 'react';
import Head from 'next/head';
2020-07-24 04:56:55 +02:00
import Header from 'components/Header';
import Footer from 'components/Footer';
2020-07-17 10:03:38 +02:00
export default function Layout({ title, children }) {
return (
<>
<Head>
<title>umami{title && ` - ${title}`}</title>
<link rel="icon" href="/favicon.ico" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap"
rel="stylesheet"
/>
</Head>
<Header />
<main className="container">{children}</main>
<Footer />
</>
);
}