mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 01:35:17 +01:00
31 lines
798 B
JavaScript
31 lines
798 B
JavaScript
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"
|
|
/>
|
|
{typeof window !== 'undefined' && (
|
|
<script
|
|
async
|
|
defer
|
|
data-website-id="d0059975-b79a-4f83-8926-ed731475fded"
|
|
src="/umami.js"
|
|
/>
|
|
)}
|
|
</Head>
|
|
<Header />
|
|
<main className="container">{children}</main>
|
|
<Footer />
|
|
</>
|
|
);
|
|
}
|