NCAR / vast

Hugo content for the VAST GitHub Pages site
https://vast.ucar.edu
MIT License
2 stars 5 forks source link

404 page 2 for R&D #49

Closed jukent closed 2 years ago

jukent commented 2 years ago

https://vast.ucar.edu/vast/projects/page/2/

Projects -> R&D > page 2 has no content. It is a 404 that redirects to just the header and footer.

jukent commented 2 years ago

It seems like only 4 projects are being displayed and page 2 isn't rendering correctly (before I wasn't sure if there should be a page 2 at all).

The new ESDS project bumped something off this page and there are still only 4 projects.

jukent commented 2 years ago

From the Hugo documentation (likely the source of the error):

"Setting paginate to a positive value will split the list pages for the homepage, sections and taxonomies into chunks of that size. But note that the generation of the pagination pages for sections, taxonomies and homepage is lazy — the pages will not be created if not referenced by a .Paginator (see below)."

https://gohugo.io/templates/pagination/

jukent commented 2 years ago

Okay it looks like page 2 exists, but isn't where the "2" or arrow link directs you: https://vast.ucar.edu/projects/page/2/

Similarly, from that page, the "1" button takes you to a 404 page: https://vast.ucar.edu/vast/projects/

There is always an extra "vast" in the link before "projects", which I have potentially tracked down to the baseURL in the config.yml which is https://ncar.github.io/vast/ instead of https://vast.ucar.edu

Or we should set up page redirects. @clyne Do you own the site domain? This would be done there.

Looking into paginatepath perhaps this can be done there? The arrows linking to the wrong place is confusing.

jukent commented 2 years ago

Fixed via #78