Skip to content

Add netlify.toml with build config#11

Merged
HeyItsGilbert merged 8 commits into
mainfrom
add-netlify-toml
May 27, 2026
Merged

Add netlify.toml with build config#11
HeyItsGilbert merged 8 commits into
mainfrom
add-netlify-toml

Conversation

@HeyItsGilbert
Copy link
Copy Markdown
Member

Summary

  • Adds netlify.toml with Hugo build command, publish directory, and cache headers
  • Sets base = "/" so Netlify runs Hugo from the repo root (not docs/)
  • Fixes warnidf call in layouts/_partials/event.ics — replaced with warnf for compatibility with Hugo < 0.123

Test plan

  • Netlify deploy preview builds successfully
  • public/ is used as the publish directory

🤖 Generated with Claude Code

HeyItsGilbert and others added 3 commits May 26, 2026 18:40
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit 5d5f158
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a165c0f9c3abb0008f91784
😎 Deploy Preview https://deploy-preview-11--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

HeyItsGilbert and others added 5 commits May 26, 2026 19:32
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
base = "/" resolves to the filesystem root, not the repo root. Omitting
base entirely is the correct way to build from the repo root.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Netlify's HUGO_VERSION env var is being silently ignored on the Noble
build image (still running bundled 0.121.2 despite HUGO_VERSION=0.155.1).
The third-party hugo-theme-component-ical module uses warnidf which
requires Hugo >= 0.123, so we need a controlled install.

Mirrors the wget + dpkg approach used in .github/workflows/deploy.yml.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The npm hugo-extended devDependency was pinned at ^0.121.0, so Netlify's
auto npm install was putting Hugo 0.121.x on the PATH ahead of any
HUGO_VERSION-resolved binary. That's why HUGO_VERSION appeared to be
ignored — it wasn't, the npm-installed Hugo just took precedence.

Bumping to ^0.155.1 brings npm-installed Hugo above the 0.123 cutoff
where warnidf landed, so the hugo-theme-component-ical module builds.

Also reverts the wget+dpkg workaround from netlify.toml — no longer
needed now that the npm-installed Hugo is current.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Match the live Netlify site configuration.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@HeyItsGilbert HeyItsGilbert enabled auto-merge (squash) May 27, 2026 02:52
@HeyItsGilbert HeyItsGilbert disabled auto-merge May 27, 2026 02:52
@HeyItsGilbert HeyItsGilbert merged commit ddd04b7 into main May 27, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the add-netlify-toml branch May 27, 2026 02:52
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.

1 participant