Skip to content

Instantly share code, notes, and snippets.

@rahulmore01
Created December 7, 2023 01:50
Show Gist options
  • Save rahulmore01/306356afa76708c39ff5dc8c918c9bef to your computer and use it in GitHub Desktop.
Save rahulmore01/306356afa76708c39ff5dc8c918c9bef to your computer and use it in GitHub Desktop.
favicon in nextjs
export const metadata = {
title: "Rahul More",
description: "A Frontend Developer Portfolio",
//line 5 to 8 is only addition to make in layout.js
icons: {
icon: "/images/rahul.png",
},
};
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
</body>
</html>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment