* Add back changes from prior to purge * Manually fix some invalid Liquid * Updoot render-content * Improve test messages to show correct output * Run el scripto * Pass the remaining test
1.2 KiB
1.2 KiB
title, intro, redirect_from, product, versions
| title | intro | redirect_from | product | versions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Creating a custom 404 page for your GitHub Pages site | You can display a custom 404 error page when people try to access nonexistent pages on your site. |
|
{% data reusables.gated-features.pages %} |
|
{% data reusables.pages.navigate-site-repo %}
{% data reusables.pages.navigate-publishing-source %}
{% data reusables.files.add-file %}
3. In the file name field, type 404.html or 404.md.
4. If you named your file 404.md, add the following YAML front matter to the beginning of the file:
---
permalink: /404.html
---
- Below the YAML front matter, if present, add the content you want to display on your 404 page. {% data reusables.files.write_commit_message %} {% data reusables.files.choose-commit-email %} {% data reusables.files.choose_commit_branch %} {% data reusables.files.propose_new_file %}
Further reading
- Front matter in the Jekyll documentation