2020-07-17 10:03:38 +02:00
|
|
|
import React from 'react';
|
|
|
|
import Head from 'next/head';
|
|
|
|
import Header from 'components/header';
|
|
|
|
import Footer from 'components/footer';
|
|
|
|
|
|
|
|
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"
|
|
|
|
/>
|
2020-07-18 04:15:29 +02:00
|
|
|
{typeof window !== 'undefined' && (
|
|
|
|
<script
|
|
|
|
async
|
|
|
|
defer
|
2020-07-19 07:51:17 +02:00
|
|
|
data-website-id="d0059975-b79a-4f83-8926-ed731475fded"
|
2020-07-18 12:44:54 +02:00
|
|
|
src="/umami.js"
|
2020-07-18 04:15:29 +02:00
|
|
|
/>
|
|
|
|
)}
|
2020-07-17 10:03:38 +02:00
|
|
|
</Head>
|
|
|
|
<Header />
|
|
|
|
<main className="container">{children}</main>
|
|
|
|
<Footer />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|