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 #154

Merged
merged 1 commit into from Apr 3, 2020
Merged

Provide a working 404 by using markdown #154

merged 1 commit into from Apr 3, 2020

Conversation

kzu
Copy link
Contributor

@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.
---

# 404: Page not found
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. [Head back home]({{ site.url }}) to try finding it again.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you change from site.baseurl to site.url intentionally?

@bernardosulzbach
Copy link

This also adds more markdown and removes HTML, therefore improving readability. I like it.

galaxy001 added a commit to galaxysd/galaxysd.github.io that referenced this pull request Feb 5, 2016
	`site.baseurl` will be "https://*.github.io/404", thus must change to `site.url`.
@mdo mdo added this to Todo in v1.1.0 via automation Apr 3, 2020
@mdo mdo merged commit 2cd9c08 into poole:master Apr 3, 2020
v1.1.0 automation moved this from Todo to Done Apr 3, 2020
geekpradd pushed a commit to geekpradd/geekpradd.github.io that referenced this pull request May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v1.1.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants