I'm trying to add a pinned tab icon that is visible in Safari, like this:
I have found this instruction: Apple's instruction for pinned tab icon
However, when I use this construction in my app.html.eex like this:
<link rel="mask-icon" href="<%= static_path(@conn, "/website_icon.svg") %>" color="red" >
<link rel="mask-icon" href="/website_icon.svg") color="red" >
In your endpoint.ex
file, there is a line specifying what the static plug should handle. Mine looks like the following
plug Plug.Static,
at: "/", from: :my_app, gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt)
You will want to either put your file in the images directory, or add a website_icon.svg
similar to the favicon.ico
entry.