0

I am creating a website through a framework "Yew.rs " and I can't connect favicon.ico.

I tried to connect it with this method:

<head>
  <link rel="icon" href="favicon.ico"><!-- 32×32 -->
</head>

but it doesn't work. Can you tell me how I can do this?

ColdIV
  • 1,118
  • 2
  • 13
  • 21
Nick
  • 21
  • 5

2 Answers2

2

I solved the problem by adding favicon.ico to the "src" folder and adding to index.html :

<link data-trunk rel="copy-dir" href="./src/"> 
<link rel="icon" href=".src/favicon.ico" type="image/x-icon" />
Nick
  • 21
  • 5
1

When favicon.ico in the frontend package root modify head block of index.html like this:

 <head>
    <link rel="icon" data-trunk href="/favicon.ico" />
 </head>

You were just missing data-trunk