Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a working 404 by using markdown #129

Closed
wants to merge 1 commit into from
Closed

Conversation

kzu
Copy link

@kzu kzu commented Jan 17, 2016

In order for the 404 to be picked up by jekyll/github pages,
it has to be in a 404.html file on the root. However, if the
file is named exactly '404.html', it won't be processed by
jekyll.

Rather, you have to provide a 404.md file, and specify its
permalink to be 404.html, which fixes the issue.

Working version at http://www.cazzulino.com/wrong-url.html.

In order for the 404 to be picked up by jekyll/github pages,
it has to be in a 404.html file on the root. However, if the
file is named exactly '404.html', it won't be processed by
jekyll.

Rather, you have to provide a 404.md file, and specify its
permalink to be 404.html, which fixes the issue.

Working version at http://www.cazzulino.com/wrong-url.html.
@mdo
Copy link
Member

mdo commented Apr 4, 2020

Fix coming in #258. I brought over your changes from Lanyon :).

@mdo mdo closed this Apr 4, 2020
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