Skip to content

Favicons: tolerate a missing static/ (Hugo 0.160.1-0.163.0) and zero-padded sizes - #2912

Merged
chalin merged 9 commits into
docsy:mainfrom
chalin:chalin-m24-favicons-static-dir-2026-1031
Oct 31, 2026
Merged

chalin merged 9 commits into
docsy:mainfrom
chalin:chalin-m24-favicons-static-dir-2026-1031

Conversation

@chalin

@chalin chalin commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator
  • Fixes Build fails on Hugo 0.160.1-0.163.0 for sites without a static/ directory #2911
  • Scope:
    • Missing static/: a site without one builds on Hugo 0.160.1 through 0.163.0
    • Accepted change: a stray static/ that is not the static dir and can be entered but not listed now builds instead of failing
    • Zero-padded sizes: favicon-08x08.png no longer fails the build, and favicon-040x040.png is no longer read as 32x32
  • Out of scope:
    • raising the Hugo floor to 0.163.1 or later, a breaking change per the maintainer notes (0.19.0 planning)
    • running the theme's test suites under the declared minimum Hugo (0.19.0 planning)
  • Tests:
    • No new test for the static/ fix: docsy.dev/tests/favicons/theme-defaults.test.mjs already pins the discovery behavior, the no-static/ case included, but runs on the pinned Hugo only
    • Red-first, static/: a site with content/_index.md, theme: theme and no static/ fails on Hugo 0.160.1 and 0.163.0 with main's partial and builds with this branch
    • Red-first, sizes: the new theme-defaults case fails against the previous regex both ways, as a cast error and, without the 08 file, as a duplicated link for the decimal sibling
    • Parity: a full icon set yields identical links on 0.160.1, 0.163.1 and 0.166.0, main and branch
  • Preview: changelog

@chalin chalin added this to the 0.18.1 milestone Oct 31, 2026
@netlify

netlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsydocs ready!

Name Link
🔨 Latest commit a358eb5
🔍 Latest deploy log https://app.netlify.com/projects/docsydocs/deploys/6ae5ea4b0a9585f5a0b1dbed
😎 Deploy Preview https://deploy-preview-2912--docsydocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@chalin chalin changed the title Favicons: tolerate a missing static/ on Hugo 0.160-0.163 Favicons: tolerate a missing static/ on Hugo 0.160.1-0.163.0 Oct 31, 2026
@chalin chalin changed the title Favicons: tolerate a missing static/ on Hugo 0.160.1-0.163.0 Favicons: tolerate a missing static/ (Hugo 0.160.1-0.163.0) and zero-padded sizes Oct 31, 2026
@chalin
chalin marked this pull request as ready for review October 31, 2026 13:27
@chalin
chalin requested a review from a team October 31, 2026 13:27
@chalin
chalin merged commit fd7e451 into docsy:main Oct 31, 2026
14 checks passed
@chalin
chalin deleted the chalin-m24-favicons-static-dir-2026-1031 branch October 31, 2026 13:30
chalin added a commit to chalin/docsy that referenced this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails on Hugo 0.160.1-0.163.0 for sites without a static/ directory

1 participant