Hugo static pages


I’ve been having some issues with getting pages to show when using Huge. I’m running this locally. using localhost:1313 my homepage shows, my contact page shows and my blog shows but no content on the blog! so I ran the command “hugo server -D” it created a new localhost:xxxx and the blog content showed but the contact page now results in a 404.

in layouts, I’ve created 3 folders _default, blog and contact inside blog and content folder I have list.html and in the content folder, I have a folder called blog with my .md files and a file. Like

I said if I run hugo server -D in terminal and use the new localhost its generated I can see all the content but once I run the command hugo server it generates a new localhost and I get a 404.

I have no idea why I can’t get the contact page to display

It is a bit hard to understand what you’re trying to achieve and which problem you have. Can you please share your sites code with us and maybe some console output from hugo if it’s relevant? It sounds like you maybe miss some templates but without source it’s hard to verify the actual problem.

Thanks in advance

this is the output from terminal hugo server

                   | EN  
  Pages            |  7  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 74  
  Processed images |  0  
  Aliases          |  1  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 62 ms
Watching for changes in /Users/Hugo/quickstart/{content,data,layouts,static,themes}
Watching for config changes in /Users/Hugo/quickstart/config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address
Press Ctrl+C to stop

file structure I’m using material-design theme

At the root in the content folder I have a sub folder called blog with all my .md files including

In the layout folder I have 2 sub folders one call blog and the other called contact in both of these I’ve used the template list.html from the _default folder in the theme

I have now ran the command hugo server -D and the blog folder is showing with the list of posts but the contact page still not showing

I figured this out my .md files were set to true which was why it was displaying a 404