Skip to content

Commit

Permalink
Clarify placement of 404 template
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Feb 21, 2023
1 parent 6f0a5f3 commit 36dd548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/templates/404.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ aliases: []
toc: false
---

When using Hugo with [GitHub Pages](https://pages.github.com/), you can provide your own template for a [custom 404 error page](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site) by creating a 404.html template file in your `/layouts` folder. When Hugo generates your site, the `404.html` file will be placed in the root.
When using Hugo with [GitHub Pages](https://pages.github.com/), you can provide your own template for a [custom 404 error page](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site) by creating a 404.html template file in the root of your `layouts` folder. When Hugo generates your site, the `404.html` file will be placed in the root.

404 pages will have all the regular [page variables][pagevars] available to use in the templates.

Expand Down

0 comments on commit 36dd548

Please sign in to comment.