@@ -41,8 +41,8 @@ export const metadata: Metadata = {
4141 images : [
4242 {
4343 url : "/home-screen.png" ,
44- width : 1200 ,
45- height : 630 ,
44+ width : 1849 ,
45+ height : 960 ,
4646 alt : "GitMastery - Learn Git Through Play" ,
4747 } ,
4848 ] ,
@@ -55,10 +55,16 @@ export const metadata: Metadata = {
5555 description : "Learn Git commands and concepts through fun, interactive challenges" ,
5656 images : [ "/home-screen.png" ] ,
5757 } ,
58+ // Google renders favicons on a white search-results background, so every icon
59+ // below is an opaque tile rather than a bare transparent glyph. Only one SVG is
60+ // declared: two competing `image/svg+xml` links made the picked icon ambiguous.
5861 icons : [
59- { rel : "icon" , url : "/gitBranch-favicon.svg" , type : "image/svg+xml" } ,
60- { rel : "icon" , url : "/gitBranch.svg" , type : "image/svg+xml" , sizes : "any" } ,
61- { rel : "apple-touch-icon" , url : "/gitBranch-favicon.svg" } ,
62+ { rel : "icon" , url : "/favicon.ico" , sizes : "16x16 32x32 48x48" , type : "image/x-icon" } ,
63+ { rel : "icon" , url : "/logo.svg" , type : "image/svg+xml" , sizes : "any" } ,
64+ { rel : "icon" , url : "/icon-192.png" , type : "image/png" , sizes : "192x192" } ,
65+ { rel : "icon" , url : "/icon-512.png" , type : "image/png" , sizes : "512x512" } ,
66+ // iOS ignores SVG here, so this has to stay a raster asset.
67+ { rel : "apple-touch-icon" , url : "/apple-touch-icon.png" , sizes : "180x180" } ,
6268 ] ,
6369} ;
6470
@@ -87,13 +93,21 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
8793 name : "GitMastery - Learn Git Through Play" ,
8894 description : "An interactive Git learning platform with hands-on practice" ,
8995 url : getPageUrl ( ) ,
96+ image : getPageUrl ( "/icon-512.png" ) ,
9097 applicationCategory : "EducationalApplication" ,
9198 operatingSystem : "Web" ,
9299 inLanguage : "en" ,
93100 publisher : {
94101 "@type" : "Organization" ,
95102 name : "GitMastery" ,
96103 url : getPageUrl ( ) ,
104+ // Required for Google to associate a logo with the site.
105+ logo : {
106+ "@type" : "ImageObject" ,
107+ url : getPageUrl ( "/icon-512.png" ) ,
108+ width : 512 ,
109+ height : 512 ,
110+ } ,
97111 } ,
98112 offers : {
99113 "@type" : "Offer" ,
0 commit comments