Skip to main content

Favicon

Published:

Series: Documentation

  1. 1. Introduction
  2. 2. Getting Started
  3. 3. Color Schemes
  4. 4. Directory Structure and Assets
  5. 5. Feature Images
  6. 6. Favicon
  7. 7. Series
  8. 8. Archive
  9. 9. Search
  10. 10. Backlinks
  11. 11. Related Article
  12. 12. Rich Content
  13. 13. Markdown and Hugo
  14. 14. Customization
  15. 15. Reference - Configuration
  16. 16. Reference - Front matter
  17. 17. Reference - Icons

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.webmanifest

Custom 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:

  1. Press F12 to open Chrome DevTools
  2. Go to the Network panel
  3. Enable Disable cache
  4. Refresh the page

Series: Documentation

  1. 1. Introduction
  2. 2. Getting Started
  3. 3. Color Schemes
  4. 4. Directory Structure and Assets
  5. 5. Feature Images
  6. 6. Favicon
  7. 7. Series
  8. 8. Archive
  9. 9. Search
  10. 10. Backlinks
  11. 11. Related Article
  12. 12. Rich Content
  13. 13. Markdown and Hugo
  14. 14. Customization
  15. 15. Reference - Configuration
  16. 16. Reference - Front matter
  17. 17. Reference - Icons