-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.js
65 lines (62 loc) · 2.51 KB
/
layout.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import Footer from '../components/Footer';
import Navbarr from '../components/Navbar';
import Head from 'next/head';
import { hotjar } from 'react-hotjar';
import ReactGA from 'react-ga4';
import { useEffect } from 'react';
export default function Layout({ title, description, children }) {
// Hotjar Tracking
useEffect(() => {
hotjar.initialize(0, 0);
//Your code
}, []);
ReactGA.initialize('Your Code');
//Remove if you do not wish to use either platform
return (
<div className="page">
<Head>
<title>{title}</title>
<meta
property="og:title"
content={'Leeds Community Consulting' + (title ? ' - ' + title.split('|')[0].trim() : '')}
/>
<link rel="shortcut icon" href="/favicon.ico"></link>
<meta property="og:description" content={description} />
<meta property="og:description" content={description} />
<meta property="og:site_name" content="Leeds Community Consulting" />
<meta property="og:image" content="" /> {/* Your image */}
<meta property="og:url" content="www.leedscommunityconsulting.com" />
<meta property="og:image:type" content="image/png" />
{/* <meta property="business:contact_data:street_address" content="396 Harewood Way" />
<meta property="business:contact_data:locality" content="Heslington, Leeds" />
<meta property="business:contact_data:region" content="North Leedsshire" />
<meta property="business:contact_data:postal_code" content="YO10 5DS" />
<meta property="business:contact_data:country_name" content="United Kingdom" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@Leeds_cc" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content="/images/lcc_banner.png" />
<meta name="twitter:image:alt" content="Our Logo" />
<meta name="msapplication-TileColor" content="#1d2050" />
<meta name="theme-color" content="#1d2050" />
<meta
name="keywords"
content="Leeds Community Consulting, Student, Pro Bono, Leeds, Leeds University, Consulting, Community Consulting"
/> */}
</Head>
<div>
<Navbarr />
<main>{children}</main>
</div>
<Footer />
</div>
);
}
export const getLayout = (page, title, description) => {
return (
<Layout title={title} description={description}>
{page}
</Layout>
);
};