mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 00:10:57 +00:00 
			
		
		
		
	Merge pull request #400 from GodD6366/fix/icon
Fix the problem that favicon does not work
This commit is contained in:
		
						commit
						e3d60297bc
					
				@ -9,9 +9,7 @@ export default function Document() {
 | 
				
			|||||||
          content="A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations."
 | 
					          content="A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations."
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
        <meta name="apple-mobile-web-app-capable" content="yes" />
 | 
					        <meta name="apple-mobile-web-app-capable" content="yes" />
 | 
				
			||||||
        <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=4" />
 | 
					        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 | 
				
			||||||
        <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=4" />
 | 
					 | 
				
			||||||
        <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=4" />
 | 
					 | 
				
			||||||
        <link rel="manifest" href="/site.webmanifest?v=4" />
 | 
					        <link rel="manifest" href="/site.webmanifest?v=4" />
 | 
				
			||||||
        <link rel="mask-icon" href="/safari-pinned-tab.svg?v=4" color="#1e9cd7" />
 | 
					        <link rel="mask-icon" href="/safari-pinned-tab.svg?v=4" color="#1e9cd7" />
 | 
				
			||||||
      </Head>
 | 
					      </Head>
 | 
				
			||||||
 | 
				
			|||||||
@ -219,9 +219,17 @@ function Home({ initialSettings }) {
 | 
				
			|||||||
        <title>{initialSettings.title || "Homepage"}</title>
 | 
					        <title>{initialSettings.title || "Homepage"}</title>
 | 
				
			||||||
        {initialSettings.base && <base href={initialSettings.base} />}
 | 
					        {initialSettings.base && <base href={initialSettings.base} />}
 | 
				
			||||||
        {initialSettings.favicon ? (
 | 
					        {initialSettings.favicon ? (
 | 
				
			||||||
          <link rel="icon" href={initialSettings.favicon} />
 | 
					          <>
 | 
				
			||||||
 | 
					            <link rel="apple-touch-icon" sizes="180x180" href={initialSettings.favicon} />
 | 
				
			||||||
 | 
					            <link rel="icon" href={initialSettings.favicon} />
 | 
				
			||||||
 | 
					          </>
 | 
				
			||||||
        ) : (
 | 
					        ) : (
 | 
				
			||||||
          <link rel="shortcut icon" href="/homepage.ico" />
 | 
					          <>
 | 
				
			||||||
 | 
					            <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=4" />
 | 
				
			||||||
 | 
					            <link rel="shortcut icon" href="/homepage.ico" />
 | 
				
			||||||
 | 
					            <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=4" />
 | 
				
			||||||
 | 
					            <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=4" />
 | 
				
			||||||
 | 
					          </>
 | 
				
			||||||
        )}
 | 
					        )}
 | 
				
			||||||
        <meta
 | 
					        <meta
 | 
				
			||||||
          name="msapplication-TileColor"
 | 
					          name="msapplication-TileColor"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user