Nested Types

Hi,

does Hugo support nested types, for example:

Blogs (main type)

  • Featured Blogs (nested type, available at blog/featured-blog/)
  • Latest Blogs (nested type, available at blog/latest-blog/)

Thanks,
g

Hugo currently support one level of section, so your example will work.

1 Like

Sadly, I’m already having issues:
I created the my first post with
hugo new page/about.md & then added index.html to page folder.
That index file opens up when I go to example.com/page, but example.com/page/about always points to 404.
I ran it with hugo server --theme=albatros --buildDrafts

Also, a public folder never gets created. :cry:

Drop the option “server” and you will get the public folder.

see https://gohugo.io/commands/hugo_server/

note: ‘hugo server’ will avoid writing the rendered and served content to disk, preferring to store it in memory.

1 Like