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

**URL:** <https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167>\
**Category:** Using Themes\
**Created:** [October 7, 2019, 8:35pm UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167 "2019-10-07T20:35:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santiago\_Erquicia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/santiago_erquicia/32/9717_2.png) [@Santiago\_Erquicia](https://discourse.gohugo.io/u/Santiago_Erquicia)\
**Post date:** [October 7, 2019, 8:35pm UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/1 "2019-10-07T20:35:39Z")

</div>

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 [Santiago Erquicia / academic-error · GitLab](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:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/2/281b14937f16b8758deb79e726b77082a9a2170b.png)

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

---

<div class="post-metadata">

**Author:** ![Santiago\_Erquicia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/santiago_erquicia/32/9717_2.png) [@Santiago\_Erquicia](https://discourse.gohugo.io/u/Santiago_Erquicia)\
**Post date:** [October 7, 2019, 8:36pm UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/2 "2019-10-07T20:36:19Z")

</div>

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:

 ![40](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/d/d75054e9e43d33e9e3bef57189ef366e239ee699.jpeg)

---

<div class="post-metadata">

**Author:** ![Santiago\_Erquicia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/santiago_erquicia/32/9717_2.png) [@Santiago\_Erquicia](https://discourse.gohugo.io/u/Santiago_Erquicia)\
**Post date:** [October 7, 2019, 8:36pm UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/3 "2019-10-07T20:36:57Z")

</div>

And the webpage shows the following information:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/5/51c0b94462eb1596c23c8a28f63b03cd4275a483.png)

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

Any idea?

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [October 8, 2019, 12:36am UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/4 "2019-10-08T00:36:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [October 8, 2019, 2:12am UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/5 "2019-10-08T02:12:55Z")

</div>

Hiya! The Academic theme was created by @neutreno. It has a [dedicated issue queue](https://github.com/gcushen/hugo-academic/issues) and [community chat](https://spectrum.chat/academic).

---

<div class="post-metadata">

**Author:** ![Santiago\_Erquicia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/santiago_erquicia/32/9717_2.png) [@Santiago\_Erquicia](https://discourse.gohugo.io/u/Santiago_Erquicia)\
**Post date:** [October 8, 2019, 2:28am UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/6 "2019-10-08T02:28:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [October 8, 2019, 6:37am UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/7 "2019-10-08T06:37:48Z")

</div>

> [@Santiago\_Erquicia](#):
>
> I rename de index.md file inside the folder to \_index.md and the back to index.md while serving the site.

Hi there,

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

---

<div class="post-metadata">

**Author:** ![Santiago\_Erquicia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/santiago_erquicia/32/9717_2.png) [@Santiago\_Erquicia](https://discourse.gohugo.io/u/Santiago_Erquicia)\
**Post date:** [October 8, 2019, 6:55pm UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/8 "2019-10-08T18:55:22Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [February 28, 2020, 8:12am UTC](https://discourse.gohugo.io/t/hugo-ignores-existing-content-shortlink-error-no-page-found-with-path-or-logical-name-v2/21167/9 "2020-02-28T08:12:44Z")

</div>

Archived on February 28, 2020, 8:12am UTC


