Skip to content

Commit

Permalink
favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeylitvinenko1 committed Feb 18, 2024
1 parent f17bd5e commit d94766d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 9 additions & 6 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import type { Metadata } from "next";
import "./globals.css";
import { montserrat } from '@/app/ui/fonts';
import Head from 'next/head';

// export const metadata: Metadata = {
// title: "Create Next App",
// description: "Generated by create next app",
// };

export const metadata: Metadata = {
icons: {
icon: './public/icon.ico', // /public path
},
};

// export const metadata: Metadata = {
// icons: {
// icon: './public/icon.ico', // /public path
// },
// };

export default function RootLayout({
children,
Expand All @@ -21,6 +21,9 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<Head>
<link rel="shortcut icon" href="./public/icon.ico" />
</Head>
<body className={montserrat.className}>{children}</body>
</html>
);
Expand Down
3 changes: 0 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import Link from 'next/link';

export const metadata: Metadata = {
title: 'Sergey Litvinenko',
icons: {
icon: './public/icon.ico', // /public path
},
};

export default function Page() {
Expand Down

0 comments on commit d94766d

Please sign in to comment.