theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.09k stars 1.12k forks source link

Unable to create a touch icon for Safari #609

Closed Pathsis closed 1 year ago

Pathsis commented 1 year ago

The current method cannot create a touch icon for Safari. I tried to use the method provided here, but it failed. What should I do?

Pathsis commented 1 year ago

I have found a way. First go to here and generate the required files, then put all the downloaded icons in the static directory, then put

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">

Put it in head-additions.html. Make sure you have production mode turned on, as well as, don't add the path to the favicon in config.toml.