Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Updated header links.

Mike Cao86ed5d56fa18
diff --git a/components/layout/Layout.js b/components/layout/Layout.js
index 18a8fc201..3b68a5817 100644
--- a/components/layout/Layout.js
+++ b/components/layout/Layout.js
@@ -1,21 +1,13 @@
import React from 'react';
import Head from 'next/head';
-import { useRouter } from 'next/router';
import Header from 'components/layout/Header';
import Footer from 'components/layout/Footer';
export default function Layout({ title, children, header = true, footer = true }) {
- const { basePath } = useRouter();
-
return (
<>
<Head>
<title>umami{title && ` - ${title}`}</title>
- <link rel="icon" href={`${basePath}/favicon.ico`} />
- <link
- href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap"
- rel="stylesheet"
- />
</Head>
{header && <Header />}
<main className="container">{children}</main>
diff --git a/pages/_app.js b/pages/_app.js
index cf4cb24c0..713270590 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -31,12 +31,17 @@ export default function App({ Component, pageProps }) {
return (
<Provider store={store}>
<Head>
+ <link rel="icon" href={`${basePath}/favicon.ico`} />
<link rel="apple-touch-icon" sizes="180x180" href={`${basePath}/apple-touch-icon.png`} />
<link rel="icon" type="image/png" sizes="32x32" href={`${basePath}/favicon-32x32.png`} />
<link rel="icon" type="image/png" sizes="16x16" href={`${basePath}/favicon-16x16.png`} />
<link rel="manifest" href={`${basePath}/site.webmanifest`} />
<link rel="mask-icon" href={`${basePath}/safari-pinned-tab.svg`} color="#5bbad5" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
+ rel="stylesheet"
+ />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1" />