academicpages / academicpages.github.io

Github Pages template for academic personal websites, forked from mmistakes/minimal-mistakes
https://academicpages.github.io
MIT License
12.13k stars 43.15k forks source link

Published website showing a page that does not exist #2318

Closed jaideep156 closed 2 months ago

jaideep156 commented 2 months ago

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:

  1. Fork the academicpages.github.io repository.
  2. Go to _data/navigation.yml
  3. Delete the following code block:

    - title: "Publications"
    url: /publications/
    
    - title: "Talks"
    url: /talks/ 
  4. 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.

Screenshots issue

Desktop Information

rjzupkoii commented 2 months ago

Updating the _data/navigation.yml doesn't prevent the collection from being rendered by the template, you still need to remove the actual data from the repository prior to deployment. Please see Adjusting Collections Included for more information.