# \[Solved\] Missing pages on site build/hugo server

**URL:** <https://discourse.gohugo.io/t/solved-missing-pages-on-site-build-hugo-server/11074>\
**Category:** support\
**Created:** [March 16, 2018, 10:16pm UTC](https://discourse.gohugo.io/t/solved-missing-pages-on-site-build-hugo-server/11074 "2018-03-16T22:16:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samplesizeofone](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@samplesizeofone](https://discourse.gohugo.io/u/samplesizeofone)\
**Post date:** [March 16, 2018, 10:16pm UTC](https://discourse.gohugo.io/t/solved-missing-pages-on-site-build-hugo-server/11074/1 "2018-03-16T22:16:56Z")

</div>

Hi,

Hugo is great, but right now, when I run `hugo server` several pages 404 unless I change the file. Then live reload seems to kick in.

When I run `hugo` most of the time a number of pages are missing in the /public directory.

I’m on hugo 0.37.1 installed via homebrew running under macOS 10.13.3 .

Here’s a link to the entire project (including theme): [https://www.dropbox.com/s/6ph0epetzt3jlmq/linkless.org.zip?dl=1](https://www.dropbox.com/s/6ph0epetzt3jlmq/linkless.org.zip?dl=1)

Forgive the zip, but I don’t want it on github just yet.

Just in case it helps, here’s my config.toml:

```
baseurl = "/" # Your domain name. Must end with "/"
title = "Tyler Spaeth"
theme = "sam"

[params]
    dateform = "Mon Jan 02, 2006"
    dateformfull = "Mon Jan 2 2006 15:04:05 EST"
    favicon = "/sam.ico"
    pygmentsStyle = "monokai" # https://help.farbox.com/pygments.html
    pygmentsCodefences = true
    homepage = "Main" # What to call the home page link
    galleryFolder = "images/" # Where you've put your images, after "/content/gallery/"
    clickablePhotos = true # Allow links to the full size images
    footerText = "Call me Sam, a theme for Hugo."

# Metadata
    description = "About Tyler Spaeth" # Max 160 characters show in search results
    twitterCard = "summary_large_image" # Card value “summary”, “summary_large_image”, “app”, or “player”
    primaryImage = "/avatar.png" # Image that shows on Twitter cards and OpenGraph links

[[params.mainMenu]]
    link = "/posts"
    text = "Thoughts"

[[params.mainMenu]]
    link = "/portfolio"
    text = "Portfolio"

[[params.mainMenu]]
    link = "/about"
    text = "About me"

```

The pages that 404 are generally anything other than the home page. Note I was able to get it to build and upload to [linkless.org](http://linkless.org) with all the content intact. But I have no idea why it worked then and not otherwise.

I’ve searched the forums and github issues with no luck.

Any help is greatly appreciated.

(PS: if the formatting is off, my apologies, I didn’t see a preview function.)

---

<div class="post-metadata">

**Author:** ![samplesizeofone](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@samplesizeofone](https://discourse.gohugo.io/u/samplesizeofone)\
**Post date:** [March 17, 2018, 1:40pm UTC](https://discourse.gohugo.io/t/solved-missing-pages-on-site-build-hugo-server/11074/3 "2018-03-17T13:40:38Z")

</div>

Finally figured it out. I had a file called index.md in my content directory. Apparently that was bad news. I removed it and the problem went away.

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [March 17, 2018, 1:50pm UTC](https://discourse.gohugo.io/t/solved-missing-pages-on-site-build-hugo-server/11074/4 "2018-03-17T13:50:06Z")

</div>

> [@samplesizeofone](#):
>
> I had a file called index.md in my content directory.

Yep. For context, have a look at:

> **[Page bundles](https://gohugo.io/content-management/page-bundles/)**
>
> Content organization using Page Bundles
