Create inside each folder and sub-folders

Hello there,
I am creating a website with hugo where i have a lot of folders,sub-folders followed by markdown file!
From what i learned surfing through various issues was you need to have a file for each folder/sub folder and that file should have front-matter like ‘title’ in order to show it on the web page!

Now is there any way where i can show the nested folders and subfolders without having to create insides all the folders !I know i can definitely write a gulp task to automatically insert but i think hugo must be having a way to do it without create file!


You don’t need it.

  • Hugo will create the root sections, home page etc. even without the “”
  • For nested sections (e.g. /blog/funny-cats), you only need it in the bottom-most folders. There is no way around that. So /blog/funny/animals/cats/ should create the tree.
1 Like

oh okay! Got it! I tried that but i think its the theme docdock which i am using ,it doesn’t allow you to show content without writing front matter and title in!
Anyways,thanks a lot!