mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-21 00:33:39 +01:00
Added basePath
This commit is contained in:
parent
81f6ecb128
commit
3087fa5dc0
@ -1,14 +1,17 @@
|
||||
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="/favicon.ico" />
|
||||
<link rel="icon" href={`${basePath}/favicon.ico`} />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap"
|
||||
rel="stylesheet"
|
||||
|
Loading…
Reference in New Issue
Block a user