Skip to content

Publish .nojekyll to bypass Jekyll on Pages branch deploys - #2

Merged
p-yukusai merged 1 commit into
mainfrom
hardening/publish-nojekyll
Aug 22, 2026
Merged

p-yukusai merged 1 commit into
mainfrom
hardening/publish-nojekyll

Conversation

@GbotHQ

@GbotHQ GbotHQ commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #1.

The deploy workflow publishes the built site to the gh-pages branch, and GitHub runs Jekyll processing on branch-based Pages deploys unless a .nojekyll file is present. Jekyll silently ignores paths starting with _ and adds avoidable build quirks. Adding the marker to static/ makes Hugo emit it at the artifact root (public/.nojekyll), disabling Jekyll entirely for the published site.

Verified locally: build copies it to public/.nojekyll.

@p-yukusai
p-yukusai merged commit a660b43 into main Aug 22, 2026
1 check passed
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.

2 participants