StartBootstrap / pro-feedback

11 stars 3 forks source link

sb-ui-kit-pro/sb-admin-pro dev kit Pages subfolder #53

Open phelieng opened 2 years ago

phelieng commented 2 years ago

Hi,

Thanks for the content! Is there a simple way to organise pages in sub folders ?

/pages/index.pug /pages/auth/.. /pages/blog/..

Relative path included in the layouts become very broken and cumbersome to arrange

Thanks!

davidtmiller commented 2 years ago

Since it all renders out to HTML in a flat file system it does get a bit cumbersome when there are many pages to deal with. When using Pug or HTML with a framework of some sort the file structure gets a lot more organized. Typically the theme is meant to be pulled into some sort of development framework and used as a starting point for the design, which usually means that users are puling most of the Pug (or HTML if preferred) apart and integrating it into a framework.

Since file paths in subfolders is a bit tricky when working with static pages, we have everything in the flat file structure that you see.

Were you planning on integrating our theme into a project using a framework of some sort, or sticking with a static output?