In this video, Nate covers the optional step of customizing the 404 or error page for your site. Learn how to control what your visitors see if they navigate to a missing page.
- [Instructor] The Hugo theme we're using…for this course includes an error page called 404.hmtl.…You can see it if you go to /404.HTML in your browser.…Some web servers can be configured to point…to this page whenever an error occurs,…or a page can't be found.…So visitors will see this page instead…of a generic server error.…You can customize this page however you like.…I'll show you how to do it.…In your Hugo project, open up the themes folder…and then drill down to layouts, 404.html.…
This is the file that turns into the 404.html…that web browsers will see.…On lines five and six, you can see…the Site.Data.l10n variables.…Those refer to configuration in the data l10n.toml file…where we can actually just change something like this…and say, the page can't be found.…Save that and then that'll immediately update…the content of this 404.html page.…If you want to customize more than just the strings…you can copy this 404.html page.…
Control + drag or Command + drag and copied…into the layouts folder, at the root of the project.…
- Advantages of static sites
- Installing Hugo and Git
- Creating a new Hugo site
- Building a new website
- Adding posts, pages, and static content
- Publishing your static site
- Deploying via FTP, AWS, and Netlify
Skill Level Beginner
Amazon Web Services Essential Trainingwith Jeff Winesett5h 2m Intermediate
Amazon Web Services: Storage and Data Managementwith Brandon Rich3h 50m Intermediate
1. How Static Sites Work
2. Set Up Hugo
3. Build a Website
4. Prepare for Publishing
5. Deploy via FTP
6. Deploy to AWS
7. Deploy with Netlify
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.