Favicon
首次發表:
A favicon is a small icon associated with a website. It is typically displayed in browser tabs, address bars, and bookmark lists to provide a visual identity for the site.
Static Directory
Place the following assets in the /static directory to enable default favicon support:
static/
├── android-chrome-192x192.png
├── android-chrome-512x512.png
├── apple-touch-icon.png
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon.ico
└── site.webmanifestCustom Favicon Setup
If the favicon format does not match the built-in requirements, create layouts/partials/head/favicons.html to override the default settings.
Not Updating
If your favicon is not updating, it is usually due to browser caching. For example, to refresh the cache:
- Press
F12to open Chrome DevTools - Go to the
Networkpanel - Enable
Disable cache - Refresh the page