Skip to content

Commit

Permalink
Merge pull request #31 from Drish-xD/dev
Browse files Browse the repository at this point in the history
add: favicon sizes
  • Loading branch information
Drish-xD authored Apr 28, 2024
2 parents 71a2f9a + 98ca049 commit 48ccfe7
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
Binary file added public/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon/favicon.ico
Binary file not shown.
Binary file removed public/images/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function robots(): MetadataRoute.Robots {
rules: {
userAgent: '*',
...(isProd && { allow: '/' }),
disallow: isProd ? ['/_next/', '/images/'] : '/'
disallow: isProd ? ['/_next/'] : '/'
},
sitemap: isProd ? `${APP_URL}/sitemap.xml` : undefined
};
Expand Down
24 changes: 23 additions & 1 deletion src/constants/DefaultMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,29 @@ export const METADATA: Metadata = {
metadataBase: new URL(APP_URL),
title,
description,
icons: [{ rel: 'icon', url: '/images/favicon.ico', type: 'image/x-icon' }],
icons: [
{
rel: 'apple-touch-icon',
url: '/favicon/favicon-16x16.png',
sizes: '180x180 '
},
{
rel: 'icon',
url: '/favicon/favicon-32x32.png',
type: 'image/png',
sizes: '32x32'
},
{
rel: 'icon',
url: '/favicon/favicon-16x16.png',
type: 'image/png',
sizes: '16x16'
},
{
rel: 'icon',
url: '/favicon/favicon.ico'
}
],
alternates: { canonical: '/' },
keywords: [
'Front-End',
Expand Down

0 comments on commit 48ccfe7

Please sign in to comment.