Hugo

Hugo ignores existing content. shortlink error: No page found with path or logical name (v2)

I’m experimenting exactly the same problem.

I’m currently trying to build a site based on the academic theme and when I add folders to the docs section hugo doesn’t find them unless I rename de index.md file inside the folder to _index.md and the back to index.md while serving the site.

I’m running hugo 0.58.3 on mac.

hugo version
Hugo Static Site Generator v0.58.3/extended darwin/amd64 BuildDate: unknown

I uploaded a repository on https://gitlab.datastar.com.ar/serquicia/academic-error

To try it out you can run hugo serve and go to the Documentación link that is on the primary navbar. There you can see a menu like:

(I’m going to post more that one because I cannot add more that one screenshot)

If you rename the file /docs/usuarios/dashboards/index.md to _index.md and back to index.md you will see on the console the following output:

And the webpage shows the following information:

Where you can see there is a new entry called 'Dashboards".

Any idea?

@Santiago_Erquicia I moved your posts to a new topic and linked the old one.

Hiya! The Academic theme was created by @neutreno. It has a dedicated issue queue and community chat.

The problem doesn’t look like from the theme. It’s not that the problem is that the page doesn’t show up on the sidebar menu, the page never gets processed and you cannot access it going to the url directly.

Hi there,

There’s a big difference in Hugo when using index.md vs _index.md. Have a read at the docs here: https://gohugo.io/content-management/page-bundles/

It looks like the problem was with mixing ´index.md´ and ´_index.md´ in different places, so that solved it.

It still looks like hugo behavior is kind of erratic, given that if you rename the file while it’s running hugo serve it works, but if you restart it, it doesn’t. The behavior is not consistent.

Anyways, thanks for the pointer!