Hugo won't pick up content page

Hello,

I’m trying to create a very basic theme and I’m currently trying to add multiple pages to the site but Hugo won’t pick them up. If I run the hugo command the about page is not generated, I’m trying to reach it at /about but I instead of the content the 404 page is rendered.

I tried running hugo -DEF so it ignores non published files etc. but that didn’t do the trick. I also tried adding a new page using the command hugo new about/index.html but it resulted in the same.

I’m probably missing something pretty basic here.

See this repo GitHub repo

Thank you for your time!

Both your single and list templates are empty.

1 Like

I’ve added this to the single template and now it works.

{{ define "main" }}
{{ .Content }}
{{ end }}

Thank you so much.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.