-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Closed
Labels
documentationChanges to documentation only (e.g., README, Guide, Wiki Pages, etc.)Changes to documentation only (e.g., README, Guide, Wiki Pages, etc.)
Milestone
Description
Describe the bug
After removing a navigation field in _data/navigation.yml
, it still shows the default page of that navigation field.
To Reproduce
Steps to reproduce the behavior:
- Fork the academicpages.github.io repository.
- Go to
_data/navigation.yml
- Delete the following code block:
- title: "Publications"
url: /publications/
- title: "Talks"
url: /talks/
- Publish changes
Expected behavior
When I go to myusername.github.io/publications
or myusername.github.io/talks
, it should show the 404.md
page since these pages do not exist (as we removed both the fields from _data/navigation.yml
Please help me to:
Redirect ANY links apart from /CV
, /year-archive
, /portfolio
redirect to the 404.md
page.
Desktop Information
- OS: Windows 11
- Browser Chrome
- Version: 127.0.6533.100
Metadata
Metadata
Assignees
Labels
documentationChanges to documentation only (e.g., README, Guide, Wiki Pages, etc.)Changes to documentation only (e.g., README, Guide, Wiki Pages, etc.)