Skip to content

Generate nested folders in _site and have them reflected in URL? #183

@jonsnou

Description

@jonsnou

Hi, I have my mds in subfolders within _pages. Currently, in _site, all md are generated as htmls in a flat hierarchy. I want to achieve two things:
a) the _pages folder should be mirrored to _site, i.e. the subfolders should be also reflected in _site as they are in _pages
b) the final URL should show the subfolder + the htmls (not a permalink), i.e. page.com/folder1/folder2/index.html
How can I achieve that?
What do I need to change in these files:

  • _config.yml
  • front matter
  • sidebar.yml
    Hope you can give a tip. Thanks!

Plus: How to solve it that the references (css/scripts) are correctly injected so that the paths work (from _includes/head.html).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions