- In the file name field, type - 404.htmlor- 404.md.
- If you named your file - 404.md, add the following YAML front matter to the beginning of the file:yaml- --- permalink: /404.html ---
- Below the YAML front matter, if present, add the content you want to display on your 404 page. 
Further reading 
- Front matter in the Jekyll documentation