Repository navigation
Conversation
chalin
force-pushed
the
chalin-m24-theme-no-default-favicons-2026-0612
branch
from
June 13, 2026 01:52
00fd0cd to
e277423
Compare
chalin
marked this pull request as draft
June 13, 2026 02:00
chalin
force-pushed
the
chalin-m24-theme-no-default-favicons-2026-0612
branch
from
June 13, 2026 02:30
e277423 to
b0d6547
Compare
chalin
force-pushed
the
chalin-m24-theme-no-default-favicons-2026-0612
branch
3 times, most recently
from
June 13, 2026 03:07
aba0763 to
be18154
Compare
- Fixes docsy#2595 - Contributes to docsy#2357 - Removes the 18 bundled favicon files from `theme/static/favicons`, so the theme no longer imposes its own branding on sites - Rewrites `_partials/favicons.html` to generate favicons from a site-provided source image, resized via Hugo's image pipeline, and publish them at the site root (`/favicon.ico`, `/favicon-NxN.png`, `/apple-touch-icon.png`) where browsers and other clients probe for them by convention - Publishes `/apple-touch-icon-precomposed.png` by default for legacy iOS, which blind-probes that name; sites can opt out via `params.td.favicons.no_apple_precomposed` - Publishes optional `.svg`/`.ico` variants as-is, also at the site root - Resolves favicon files from `assets/`, at the root or under `favicons/`, configurable via `params.td.favicons` (`path`, `sizes`, `no_apple_precomposed`) - Warns once (suppressible via `docsy-no-favicons`) when a site provides no favicons - Adds a source favicon for docsy.dev under `assets/favicons` - Documents the new approach and default configuration in the user guide - Note: favicon overrides now live in `assets/` rather than `static/`, since Hugo's resource pipeline only sees `assets/`
chalin
force-pushed
the
chalin-m24-theme-no-default-favicons-2026-0612
branch
from
June 13, 2026 03:10
be18154 to
65255c5
Compare
Collaborator
Author
|
Superseded by #2654, which takes a simpler smart pass-through approach (discover and link conventionally named |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The theme no longer ships its own favicon files. Instead, Docsy generates the favicons from a single site-provided source image and publishes them at the site root, where browsers and other clients probe for them by analytics across Docsy sites show the bulk of favicon requests (and 404s) are root-path requests (
/favicon.ico,/apple-touch-icon.png,/favicon-16x16.png,/favicon-32x32.png) that a/favicons/-based layout never satisfies.conventionWhat changed
theme/static/favicons, so the theme no longer imposes its own branding on downstream sites._partials/favicons.htmlto:apple-touch-icon) from one source image viaResize ... CatmullRom./favicon.ico,/favicon-16x16.,/apple-touch-icon.png) viaresources.Copy, so blind root probes resolve.png,/apple-touch-icon-precomposed.pngby default (legacy iOS blind-probes that name; analytics show it as a top uncovered 404); sites can opt out viaparams.td.favicons.no_apple_precomposed.favicon.svg/favicon.icovariants as-is.ignoreLogs: ['docsy-no-favicons']) when a site provides no favicons.Configuration
Sites supply a square source image (default
favicon.png) underassets/, at the root or infavicons/. Optional overrides underparams.td.favicons(defaults shown):Breaking change
Favicon files now live under
assets/rather thanstatic/, because Hugo's resource pipeline (resources.Get) only seesassets/. Sites that previously dropped favicons instatic/favicons/will need to move them and supply a square source image. This is noted for the 0.16.0 release notes.